This commit is contained in:
lmj
2022-09-07 16:56:08 +08:00
parent c6781abee3
commit 309b2dcf1c
2 changed files with 27 additions and 1 deletions

View File

@@ -9,6 +9,12 @@ VUE_APP_BASE_API = '/systemapi'
# BOE管理系统/开发环境 # BOE管理系统/开发环境
VUE_APP_BOE_BASE_API = '/uboeApi' VUE_APP_BOE_BASE_API = '/uboeApi'
# 资源位的api
VUE_APP_CESOURCE_BASE_API = '/subgroupApi'
# 事件的api
VUE_APP_STAT_BASE_API = '/statApi'
# BOE系统网址 # BOE系统网址
VUE_APP_BOE_WEB_URL = 'https://u.boe.com' VUE_APP_BOE_WEB_URL = 'https://u.boe.com'

View File

@@ -114,7 +114,7 @@ module.exports = {
proxy: { proxy: {
'/systemapi': { '/systemapi': {
// 目标代理服务器地址 // 目标代理服务器地址
target: 'http://localhost:9090', target: 'http://192.168.0.10:9090',
changeOrigin: true, changeOrigin: true,
logLevel:'debug', logLevel:'debug',
secure: false, secure: false,
@@ -131,6 +131,26 @@ module.exports = {
'^/uboeApi': '/api' '^/uboeApi': '/api'
} }
}, },
'/statApi': {
// 目标代理服务器地址
target: 'http://192.168.0.107:9080',
changeOrigin: true,
logLevel:'debug',
secure: false,
pathRewrite: {
'^/statApi': ''
}
},
'/subgroupApi': {
// 目标代理服务器地址
target: 'http://192.168.0.107:9081',
changeOrigin: true,
logLevel:'debug',
secure: false,
pathRewrite: {
'^/subgroupApi': ''
}
},
}, },
}, },
} }