From ffdb777390bb7efccccc36ae30be428ccbbc2ec4 Mon Sep 17 00:00:00 2001 From: gonghaoxing <478185430@qq.com> Date: Wed, 29 Oct 2025 17:10:16 +0800 Subject: [PATCH] =?UTF-8?q?'=E5=8E=BB=E9=99=A4=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E6=89=93=E5=8D=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/App.vue | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/frontend/App.vue b/frontend/App.vue index 91911f0..d146d75 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -12,11 +12,6 @@ fail: () => {}, }); - // 初始化移动端调试控制台(仅H5环境) - // #ifdef H5 - initVConsole(); - // #endif - // 加载Shopro底层依赖 ShoproInit(); @@ -29,29 +24,6 @@ // #endif }); - /** - * 初始化 vConsole 移动端调试控制台 - * 在H5环境下提供类似Chrome DevTools的功能 - */ - const initVConsole = () => { - // 动态导入vConsole,避免打包到非H5平台 - import('vconsole') - .then((module) => { - const VConsole = module.default; - const vConsole = new VConsole({ - defaultPlugins: ['system', 'network', 'element', 'storage'], - maxLogNumber: 1000, - disableLogScrolling: false, - }); - - // 保存实例供后续使用 - window.vConsole = vConsole; - }) - .catch((err) => { - console.error('[App] vConsole加载失败:', err); - }); - }; - onError((err) => { console.log('AppOnError:', err); });