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, open: true,
proxy: { proxy: {
// [process.env.VUE_APP_BASE_API + '/run/']: { // [process.env.VUE_APP_BASE_API + '/run/']: {
// target: "http://shuili-admin.product.dev.com:30115", // target: "http://172.16.34.27:18082",
// changeOrigin: true, // changeOrigin: true,
// // logLevel: 'debug', // // logLevel: 'debug',
// pathRewrite: { // pathRewrite: {
// [process.env.VUE_APP_BASE_API +'/run/']: '/tianhui-admin-web/run/' // [process.env.VUE_APP_BASE_API +'/run/']: '/tianhui-admin-web/run/'
// } // }
// }, // },
[process.env.VUE_APP_BASE_API + '/run/']: { // [ '/profile/']: {
target: "http://172.16.34.27:18082", // target: 'http://shuili-admin.product.dev.com:30115',
changeOrigin: true, // changeOrigin: true,
// logLevel: 'debug', // // logLevel: 'debug',
pathRewrite: { // pathRewrite: {
[process.env.VUE_APP_BASE_API +'/run/']: '/tianhui-admin-web/run/' // ['/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]: { // [process.env.VUE_APP_BASE_API]: {
// target: 'http://172.16.34.59:18083', // target: 'http://172.16.34.59:18083',

Loading…
Cancel
Save