前端配置文件的简化和统一

This commit is contained in:
kerwincui
2022-06-23 01:41:44 +08:00
parent 966318e5cf
commit f88bc5fdf3
11 changed files with 80 additions and 36 deletions

View File

@@ -33,14 +33,14 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080`,
target: process.env.VUE_APP_SERVER_API_URL,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
},
['/api/v4']: {
target: `http://wumei.live:8081`,
target: process.env.VUE_APP_EMQX_API_URL,
changeOrigin: true,
// logLevel: 'debug',
},