From 2801bce7fc10dcd5641b53aee4c28f41dff204dc Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期四, 10 七月 2025 14:31:15 +0800
Subject: [PATCH] Merge branch 'ID2623-副屏识别二维码bug' into test

---
 src/main.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main.ts b/src/main.ts
index 3b5707f..9a03e28 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -6,10 +6,12 @@
 import './style.css'
 import router from './router';
 import App from './App.vue'
+import VConsole from 'vconsole'
 
+if (import.meta.env.VITE_ENV === 'development') {
 // 如果需要在手机平板上打开控制台,安装一个这个
-// import VConsole from 'vconsole'
-// const vConsole = new VConsole()
-// console.log('vConsole is ready.')
+    const vConsole = new VConsole()
+}
+
 
 createApp(App).use(router).use(ElementPlus).use(Vant).mount('#app')

--
Gitblit v1.8.0