From d17254e25cfaf8361c08eea6f16d99571a49174f Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 15 三月 2025 17:34:24 +0800 Subject: [PATCH] Merge branch 'front' into devlop --- rsf-admin/vite.config.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/rsf-admin/vite.config.js b/rsf-admin/vite.config.js index cf12736..abba897 100644 --- a/rsf-admin/vite.config.js +++ b/rsf-admin/vite.config.js @@ -20,6 +20,10 @@ '/rsf-server': { target: `http://${env.VITE_BASE_IP}:${env.VITE_BASE_PORT}`, changeOrigin: true, + bypass: (req, res, options) => { + const proxyUrl = `${options.target}${req.url}`; + res.setHeader('x-rel-url', proxyUrl); + } // rewrite: (path) => path.replace(/^\/api/, ''), }, '/ws': { -- Gitblit v1.9.1