vue config
parent
3c4e606e6b
commit
90b00afa66
|
@ -32,29 +32,14 @@ module.exports = {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
port: port,
|
port: port,
|
||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
// '/jhapi/profile':{
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
// target: `http://62.234.3.186/jhapi/profile/`,
|
target: `http://127.0.0.1:80/jhapi`,
|
||||||
// changeOrigin: true,
|
|
||||||
// pathRewrite: {
|
|
||||||
// '^/jhapi/profile':'/'
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
'/jhapi':{
|
|
||||||
//target: `http://62.234.3.186/jhapi/`,
|
|
||||||
target: `http://127.0.0.1:8090/jhapi/`,
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/jhapi':'/'
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
'/profile':{
|
|
||||||
target: `http://62.234.3.186/profile/`,
|
|
||||||
changeOrigin: true,
|
|
||||||
pathRewrite: {
|
|
||||||
'^/profile':'/'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
disableHostCheck: true
|
disableHostCheck: true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue