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