vue config

dev_xds
姜玉琦 2024-03-03 12:10:38 +08:00
parent 3c4e606e6b
commit 90b00afa66
1 changed files with 5 additions and 20 deletions

View File

@ -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
},