Browse Source

测试

zhanglei
dimengzhe 1 year ago
parent
commit
8a10d84246
  1. 4
      anrui-system-ui/vue.config.js

4
anrui-system-ui/vue.config.js

@ -40,9 +40,9 @@ module.exports = {
}, },
proxy: { proxy: {
'/api': { // 匹配所有以 '/api'开头的请求路径 '/api': { // 匹配所有以 '/api'开头的请求路径
target: 'http://120.46.131.15:8111', // 代理目标的基础路径 // target: 'http://120.46.131.15:8111', // 代理目标的基础路径
//target: 'http://192.168.1.109:8111', // 代理目标的基础路径 //target: 'http://192.168.1.109:8111', // 代理目标的基础路径
// target: process.env.VUE_APP_URL, // 代理目标的基础路径 target: process.env.VUE_APP_URL, // 代理目标的基础路径
changeOrigin: true, // 支持跨域 changeOrigin: true, // 支持跨域
pathRewrite: { // 重写路径: 去掉路径中开头的'/api' pathRewrite: { // 重写路径: 去掉路径中开头的'/api'
'^/api': '' '^/api': ''

Loading…
Cancel
Save