From e3b7b79e74b24cd42d86df86d8990f3fc3d2c9e5 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Thu, 11 Apr 2024 15:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index bef13bf..0f25e86 100644 --- a/vue.config.js +++ b/vue.config.js @@ -21,13 +21,13 @@ module.exports = defineConfig({ proxy: { "/api": { //表示拦截以/api开头的请求路径 - //target: "http://180.166.218.222:40080", //dell + target: "http://180.166.218.222:40080", //dell //target: "http://192.168.1.190:8080", //liu 本机ip 需要去掉/Api - target: "http://192.168.50.7:8093", //liu 本机ip 需要去掉/Api + //target: "http://192.168.50.7:8093", //liu 本机ip 需要去掉/Api // target: "http://192.168.111.211:80", //东视 changOrigin: true, //是否开启跨域 pathRewrite: { - "^/api": "", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 + "^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 }, }, },