Skip to content

Commit

Permalink
chore: set localhost => 127.0.0.1 (#2142)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored May 26, 2019
1 parent ab1922e commit 6a322c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ''
Expand Down

1 comment on commit 6a322c9

@Kylelkh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么要改为127.0.0.1?如果是在担心windows系统不能使用的话,建议用回环地址

Please sign in to comment.