From 8a10d8424679365933c157460ed800eb8a3495e1 Mon Sep 17 00:00:00 2001 From: dimengzhe Date: Wed, 10 Apr 2024 15:13:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anrui-system-ui/vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anrui-system-ui/vue.config.js b/anrui-system-ui/vue.config.js index df2d53abac..82e1de54c6 100644 --- a/anrui-system-ui/vue.config.js +++ b/anrui-system-ui/vue.config.js @@ -40,9 +40,9 @@ module.exports = { }, proxy: { '/api': { // 匹配所有以 '/api'开头的请求路径 - target: 'http://120.46.131.15:8111', // 代理目标的基础路径 + // target: 'http://120.46.131.15:8111', // 代理目标的基础路径 //target: 'http://192.168.1.109:8111', // 代理目标的基础路径 - // target: process.env.VUE_APP_URL, // 代理目标的基础路径 + target: process.env.VUE_APP_URL, // 代理目标的基础路径 changeOrigin: true, // 支持跨域 pathRewrite: { // 重写路径: 去掉路径中开头的'/api' '^/api': ''