Browse Source

fix: 注释代理

sy-water-data-board-ui
panyuyi 1 year ago
parent
commit
02e4d645b1
  1. 26
      vue.config.js

26
vue.config.js

@ -36,29 +36,21 @@ module.exports = {
open: true,
proxy: {
// [process.env.VUE_APP_BASE_API + '/run/']: {
// target: "http://shuili-admin.product.dev.com:30115",
// target: "http://172.16.34.27:18082",
// changeOrigin: true,
// // logLevel: 'debug',
// pathRewrite: {
// [process.env.VUE_APP_BASE_API +'/run/']: '/tianhui-admin-web/run/'
// }
// },
[process.env.VUE_APP_BASE_API + '/run/']: {
target: "http://172.16.34.27:18082",
changeOrigin: true,
// logLevel: 'debug',
pathRewrite: {
[process.env.VUE_APP_BASE_API +'/run/']: '/tianhui-admin-web/run/'
}
},
[ '/profile/']: {
target: 'http://shuili-admin.product.dev.com:30115',
changeOrigin: true,
// logLevel: 'debug',
pathRewrite: {
['/profile/']: '/tianhui-admin-web/profile/'
}
},
// [ '/profile/']: {
// target: 'http://shuili-admin.product.dev.com:30115',
// changeOrigin: true,
// // logLevel: 'debug',
// pathRewrite: {
// ['/profile/']: '/tianhui-admin-web/profile/'
// }
// },
// 曹琪本地接口
// [process.env.VUE_APP_BASE_API]: {
// target: 'http://172.16.34.59:18083',

Loading…
Cancel
Save