|
@@ -13,6 +13,7 @@ import { storage } from '@/helpers/storage';
|
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types';
|
|
|
import { setupStore } from './store';
|
|
|
import { Lazyload, setToastDefaultOptions } from 'vant';
|
|
|
+import useErrorLog from './hooks/useErrorLog';
|
|
|
setToastDefaultOptions({ duration: 3000 });
|
|
|
|
|
|
// 获取token
|
|
@@ -34,6 +35,10 @@ postMessage({ api: 'getNavHeight' }, (res: any) => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+// 监听错误信息
|
|
|
+const errorLog = useErrorLog();
|
|
|
+errorLog.startListenErrorLog();
|
|
|
+
|
|
|
// import Vconsole from 'vconsole';
|
|
|
// const vconsole = new Vconsole();
|
|
|
|
|
@@ -47,4 +52,5 @@ setupStore(app);
|
|
|
dayjs.locale('zh-ch');
|
|
|
|
|
|
app.use(router);
|
|
|
+
|
|
|
app.mount('#app');
|