chore: set localhost => 127.0.0.1

This commit is contained in:
Pan 2019-05-27 16:57:29 +08:00
parent 0353f1a4be
commit 969f43415d
1 changed files with 1 additions and 1 deletions

View File

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