From c118952a2ea5378e642e3babacca213c0346c2b7 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 17 Jan 2024 15:58:54 +0800 Subject: [PATCH] wp --- vue.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index c73b21a..7a81ce1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -30,11 +30,11 @@ module.exports = defineConfig({ "/api": { //表示拦截以/api开头的请求路径 - //target: "http://180.166.218.222:40080", //dell服务器环境 - target: "http://192.168.50.42:8093/", //湖南 + target: "http://180.166.218.222:40080", //dell服务器环境 + //target: "http://192.168.1.39:8093/", //湖南 changOrigin: true, //是否开启跨域 pathRewrite: { - "^/api": "", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 + "^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 }, }, },