mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 20:17:54 +00:00
feat: 修改base api
This commit is contained in:
@@ -40,12 +40,9 @@ module.exports = {
|
||||
proxy: {
|
||||
// change xxx-api/login => mock/login
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
'/api/': {
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
}
|
||||
changeOrigin: true
|
||||
},
|
||||
'^/(core|static|media)/': {
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
|
Reference in New Issue
Block a user