From 812f1e2f9250022d17d979c18b66f424acd841cd Mon Sep 17 00:00:00 2001 From: niushuai233 Date: Fri, 30 Dec 2022 10:27:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=BE=E5=BC=80=E9=83=A8=E5=88=86dev?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/vue.config.js b/vue.config.js index c9a2a64..bfef6c9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -82,18 +82,17 @@ module.exports = { } } }, - devServer: { port: 3000, - // hot: true, - // disableHostCheck: true, + hot: true, + disableHostCheck: true, // overlay: { // warnings: false, // errors: true, // }, - // headers: { - // 'Access-Control-Allow-Origin': '*', - // }, + headers: { + 'Access-Control-Allow-Origin': '*' + }, proxy: { /* '/api': { target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统 @@ -112,6 +111,5 @@ module.exports = { } } }, - lintOnSave: undefined }