update vue.config.js.

Signed-off-by: 樊倡盛 <11481212+fan-chuangsheng@user.noreply.gitee.com>
pull/4/head
樊倡盛 2022-12-01 12:45:41 +00:00 committed by Gitee
parent 4c18a3f47b
commit 210d4b91f3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 9 additions and 1 deletions

View File

@ -36,7 +36,15 @@ module.exports = {
warnings: false,
errors: true
},
before: require('./mock/mock-server.js')
proxy: {
[process.env.VUE_APP_BASE_API ]: {
target: 'http://127.0.0.1:8080',
changeOrigin: true,
pathRewrite: {
[ '^' + process.env.VUE_APP_BASE_API ]: ''
}
}
}
},
configureWebpack: {
// provide the app's title in webpack's name field, so that