From 8d75457870cfac855c03c67102233ba69c16821f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=87=AF=E6=A5=A0?= <1403191743@qq.com> Date: Wed, 19 Apr 2023 02:05:22 +0000 Subject: [PATCH] update main.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈凯楠 <1403191743@qq.com> --- main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.js b/main.js index 1c26287..56f7689 100644 --- a/main.js +++ b/main.js @@ -7,6 +7,11 @@ import '@/static/js/CommonFunction.js' Vue.config.productionTip = false +// 去除生产环境console +if (uni.getSystemInfoSync().platform !== "devtools") { + console.log = () => {} +} + App.mpType = 'app' const app = new Vue({