mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 18:49:19 +00:00
feat: proxyhost移动到环境变量 feat: 添加README
This commit is contained in:
@@ -41,14 +41,14 @@ module.exports = {
|
||||
// change xxx-api/login => mock/login
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: `http://localhost:8080`,
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
}
|
||||
},
|
||||
'^/core/': {
|
||||
target: `http://localhost:8080`,
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user