mirror of
https://gitee.com/liuxioabin/fengketrade.git
synced 2026-04-17 12:57:32 +08:00
'去除控制台打印'
This commit is contained in:
parent
cc1c869a1a
commit
ffdb777390
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user