Browse Source

测试

master
dimengzhe 1 year ago
parent
commit
e41663f760
  1. 4
      yxt-as-ui/vue.config.js

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

Loading…
Cancel
Save