From 09418de1ef7784a412a4fb5dc3de8c5f26f809e6 Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 3 Feb 2023 16:40:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0proxy?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0windows.location=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index d02e28c6..2e2b53e1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,13 +15,13 @@ module.exports = defineConfig({ port: 8080, proxy: { "/manageApi": { - target: window.location.protocol + process.env.VUE_APP_PROXY_URL, + target: 'http:' + process.env.VUE_APP_PROXY_URL, changeOrigin: true, //表示是否改变原域名 pathRewrite: { "^/manageApi": "", }, }, "/userbasic": { - target: window.location.protocol + process.env.VUE_APP_BOE_API_URL, + target: 'http:' + process.env.VUE_APP_BOE_API_URL, changeOrigin: true, //表示是否改变原域名 }, },