From 37c8dcbe096662498217e580b0e1e6737f1c76b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=86=E4=BF=8A=E7=83=A8?= Date: Thu, 12 Dec 2019 16:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BF=E9=97=AE=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=B8=BA0.0.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index ded857f..6e91d9f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -42,8 +42,8 @@ module.exports = { lintOnSave: true, devServer: { open: true, - host: 'localhost', - port: '8081', + host: '0.0.0.0', + port: '8080', proxy: { '/api': { target: 'http://localhost:8999', // 要请求的地址