From 2c5945bfc7fcb1ab999a94644b70e0d719ee64b4 Mon Sep 17 00:00:00 2001 From: wuyx Date: Thu, 23 Feb 2023 09:48:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index 4e53e66d..fb1e86d9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,7 +6,7 @@ * @FilePath: /fe-manage/vue.config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ -const {defineConfig} = require("@vue/cli-service"); +const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ publicPath: process.env.VUE_APP_BASE, @@ -15,8 +15,7 @@ module.exports = defineConfig({ port: 8070, proxy: { "/manageApi": { - // target: 'http:' + process.env.VUE_APP_PROXY_URL, - target: 'http://localhost:30001', + target: 'http:' + process.env.VUE_APP_PROXY_URL, changeOrigin: true, //表示是否改变原域名 pathRewrite: { "^/manageApi": "",