Browse Source

修改访问地址为0.0.0.0

old
荆俊烨 6 years ago
parent
commit
37c8dcbe09
  1. 4
      vue.config.js

4
vue.config.js

@ -42,8 +42,8 @@ module.exports = {
lintOnSave: true, lintOnSave: true,
devServer: { devServer: {
open: true, open: true,
host: 'localhost', host: '0.0.0.0',
port: '8081', port: '8080',
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8999', // 要请求的地址 target: 'http://localhost:8999', // 要请求的地址

Loading…
Cancel
Save