Skip to content

Commit 6a322c9

Browse files
authored
chore: set localhost => 127.0.0.1 (PanJiaChen#2142)
1 parent ab1922e commit 6a322c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vue.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
// change xxx-api/login => mock/login
3838
// detail: https://cli.vuejs.org/config/#devserver-proxy
3939
[process.env.VUE_APP_BASE_API]: {
40-
target: `http://localhost:${port}/mock`,
40+
target: `http://127.0.0.1:${port}/mock`,
4141
changeOrigin: true,
4242
pathRewrite: {
4343
['^' + process.env.VUE_APP_BASE_API]: ''

0 commit comments

Comments
 (0)