From e06dbcc73e0492c0e3dbc6b59e72e1f9d718a8ae Mon Sep 17 00:00:00 2001 From: fengdong777 <1478994744@qq.com> Date: Thu, 7 Sep 2023 17:41:42 +0800 Subject: [PATCH] 9.7 --- supervise-portal-ui/vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervise-portal-ui/vue.config.js b/supervise-portal-ui/vue.config.js index db7a1163..0d73ea73 100644 --- a/supervise-portal-ui/vue.config.js +++ b/supervise-portal-ui/vue.config.js @@ -42,8 +42,8 @@ module.exports = { '/api': { // 匹配所有以 '/api'开头的请求路径 // target: 'http://120.46.131.15:8111', // 代理目标的基础路径 // target: 'http://192.168.1.109:8111', // 代理目标的基础路径 - // target: process.env.VUE_APP_URL, // 代理目标的基础路径 - target: 'http://supervise.yxtsoft.com/api', // 代理目标的基础路径 + target: process.env.VUE_APP_URL, // 代理目标的基础路径 + // target: 'http://supervise.yxtsoft.com/api', // 代理目标的基础路径 changeOrigin: true, // 支持跨域 pathRewrite: { // 重写路径: 去掉路径中开头的'/api' '^/api': ''