mirror of
https://gitee.com/liuxioabin/fengketrade.git
synced 2026-04-17 21:03:17 +08:00
'去除控制台打印'
This commit is contained in:
parent
cc1c869a1a
commit
ffdb777390
@ -12,11 +12,6 @@
|
|||||||
fail: () => {},
|
fail: () => {},
|
||||||
});
|
});
|
||||||
|
|
||||||
// 初始化移动端调试控制台(仅H5环境)
|
|
||||||
// #ifdef H5
|
|
||||||
initVConsole();
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// 加载Shopro底层依赖
|
// 加载Shopro底层依赖
|
||||||
ShoproInit();
|
ShoproInit();
|
||||||
|
|
||||||
@ -29,29 +24,6 @@
|
|||||||
// #endif
|
// #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) => {
|
onError((err) => {
|
||||||
console.log('AppOnError:', err);
|
console.log('AppOnError:', err);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user