|
|
@@ -189,24 +189,35 @@ module.exports = {
|
|
|
hotOnly: true,
|
|
|
// assetsPublicPath: '/manageWeb',
|
|
|
proxy: { // 设置代理
|
|
|
- '/app': {
|
|
|
- target: 'http://localhost:8897/', // 设置你调用的接口域名和端口号 别忘了加http
|
|
|
+ // '/app': {
|
|
|
+ // target: 'http://localhost:8897/', // 设置你调用的接口域名和端口号 别忘了加http
|
|
|
+ // changeOrigin: true,
|
|
|
+ // ws: true,
|
|
|
+ // pathRewrite: {
|
|
|
+ // '^/app': ''//这里理解成用‘/app’代替target里面的地址,后面组件中我们调接口时直接用api代替域名及端口号
|
|
|
+ // // 比如要调用'https://a.com/user/add',直接写‘/app/user/add’即可
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ '/request_patrol': {
|
|
|
+ // target: 'https://www.jxydyw.cn/patrol-web',//线下
|
|
|
+ target: 'https://www.zwywpt.top/patrol-web',//正式
|
|
|
+ // target: 'http://localhost/patrol-web',
|
|
|
+ // target: 'http://localhost:8899',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
pathRewrite: {
|
|
|
- '^/app': ''//这里理解成用‘/app’代替target里面的地址,后面组件中我们调接口时直接用api代替域名及端口号
|
|
|
- // 比如要调用'https://a.com/user/add',直接写‘/app/user/add’即可
|
|
|
+ '^/request_patrol': ''
|
|
|
}
|
|
|
},
|
|
|
- '/request_patrol': {
|
|
|
+ '/excel': {
|
|
|
// target: 'https://www.jxydyw.cn/patrol-web',//线下
|
|
|
- target: 'https://xj.chuanghai-tech.com/patrol-web',//正式
|
|
|
+ target: 'https://www.zwywpt.top/excel',//正式
|
|
|
// target: 'http://localhost/patrol-web',
|
|
|
// target: 'http://localhost:8899',
|
|
|
changeOrigin: true,
|
|
|
ws: true,
|
|
|
pathRewrite: {
|
|
|
- '^/request_patrol': ''
|
|
|
+ '^/excel': ''
|
|
|
}
|
|
|
},
|
|
|
},
|