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': ''