From 1d37c375fd114212ee1419c3bbdadc81d76666a4 Mon Sep 17 00:00:00 2001
From: yearning <10538594+wangweifeng1999@user.noreply.gitee.com>
Date: 星期四, 03 九月 2026 18:01:59 +0800
Subject: [PATCH] 优化

---
 src/main.js |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/main.js b/src/main.js
index 5391ace..364ba33 100644
--- a/src/main.js
+++ b/src/main.js
@@ -24,9 +24,19 @@
   app.component(key, component)
 }
 
-import('vconsole').then((module) => {
-  new module.default()
-})
+// ?qxydebug2=true 瑙﹀彂
+const urlParams = new URLSearchParams(window.location.search);
+if (urlParams.get('qxydebug2') === 'true') {
+  localStorage.setItem('debug2', 'true')
+}
+if (localStorage.getItem('debug2') == 'true') {
+  import('vconsole').then((module) => {
+    new module.default();
+  });
+}
+//  import('vconsole').then((module) => {
+//     new module.default();
+//   });
 
 app.config.globalProperties.$rules = ruleGenerator
 app.config.globalProperties.$property = property
@@ -43,7 +53,6 @@
 
 app.use(ElementPlus, {
   locale: zhCn,
-  
 })
 const pinia = createPinia()
 pinia.use(piniaPluginPersistedstate)

--
Gitblit v1.8.0