From 27067a70d3df3508796b64b2c387dbed7684f3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E9=B9=8F?= Date: Thu, 9 Jul 2020 17:57:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E7=BD=91=E5=BC=80=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vue.config.js b/vue.config.js index b0f006b..115bf01 100755 --- a/vue.config.js +++ b/vue.config.js @@ -32,6 +32,8 @@ module.exports = { devServer: { port: port, open: true, + public: require('os').networkInterfaces()[Object.keys(require('os').networkInterfaces())[0]][1].address + ':8080', + disableHostCheck: true, overlay: { warnings: false, errors: true -- 2.0.0