feat: proxyhost移动到环境变量 feat: 添加README

This commit is contained in:
ibuler
2020-06-01 13:59:31 +08:00
parent 1961f76132
commit 1ad43e2921
4 changed files with 48 additions and 18 deletions

View File

@@ -41,14 +41,14 @@ module.exports = {
// change xxx-api/login => mock/login
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080`,
target: process.env.VUE_APP_CORE_HOST,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
},
'^/core/': {
target: `http://localhost:8080`,
target: process.env.VUE_APP_CORE_HOST,
changeOrigin: true
}
},