From 969f43415d766e6a44ce0a264a4350a2b8bb23fa Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 27 May 2019 16:57:29 +0800 Subject: [PATCH] chore: set localhost => 127.0.0.1 --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 4ad716c..18610d7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -37,7 +37,7 @@ 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:${port}/mock`, + target: `http://127.0.0.1:${port}/mock`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''