From aa9b6a4f0921e80c7b9f3b405ec2ed32b12b04b2 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 6 Nov 2023 10:08:28 +0800 Subject: [PATCH] ss --- vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index dae853c..59648de 100644 --- a/vue.config.js +++ b/vue.config.js @@ -22,7 +22,8 @@ module.exports = defineConfig({ "/api": { //表示拦截以/api开头的请求路径 //target: "http://47.96.238.157:8093", //阿里云服务器环境 - target: "http://180.166.218.222:40080", //dell + //target: "http://180.166.218.222:40080", //dell + target: "http://192.168.50.42:81", //东视 changOrigin: true, //是否开启跨域 pathRewrite: { "^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的