From e41663f7609482ced9ef1b0a1128ae79838ef432 Mon Sep 17 00:00:00 2001 From: dimengzhe Date: Wed, 10 Apr 2024 15:11:34 +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 --- yxt-as-ui/vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yxt-as-ui/vue.config.js b/yxt-as-ui/vue.config.js index 7648aeb825..0b85478041 100644 --- a/yxt-as-ui/vue.config.js +++ b/yxt-as-ui/vue.config.js @@ -40,8 +40,8 @@ module.exports = { }, proxy: { '/api': { // 匹配所有以 '/api'开头的请求路径 - target: 'http://127.0.0.1:8111/', - // target: process.env.VUE_APP_URL, // 代理目标的基础路径 + // target: 'http://127.0.0.1:8111/', + target: process.env.VUE_APP_URL, // 代理目标的基础路径 changeOrigin: true, // 支持跨域 pathRewrite: { // 重写路径: 去掉路径中开头的'/api' '^/api': ''