|
|
@ -40,8 +40,8 @@ module.exports = { |
|
|
|
}, |
|
|
|
proxy: { |
|
|
|
'/api': { // 匹配所有以 '/api'开头的请求路径
|
|
|
|
// target: 'http://192.168.1.109:8111',
|
|
|
|
target: "http://jianguan.yyundong.com/", // 代理目标的基础路径
|
|
|
|
target: 'http://127.0.0.1:7001', |
|
|
|
// target: "http://jianguan.yyundong.com/", // 代理目标的基础路径
|
|
|
|
changeOrigin: true, // 支持跨域
|
|
|
|
pathRewrite: { // 重写路径: 去掉路径中开头的'/api'
|
|
|
|
'^/api': '' |
|
|
|