Update vue.config.js

This commit is contained in:
jmal 2023-06-26 19:02:14 +08:00
parent 4d80fa6016
commit 5e7c2f9130
2 changed files with 2 additions and 1 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
API=http://localhost:8088

View File

@ -44,7 +44,7 @@ module.exports = {
},
proxy: {
[process.env.VUE_APP_BASE_API]: {
target: 'http://localhost:8088',
target: process.env.API,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''