调整微信小程序的报错。

This commit is contained in:
cst61
2026-02-01 09:49:48 +08:00
parent cc01c4dc47
commit 802ffbb2f3
454 changed files with 62476 additions and 45 deletions

View File

@@ -150,12 +150,14 @@
},
onShow: function() {
console.log('App Show')
// 每次应用显示时同步用户信息解决store初始化时uni未准备好导致的问题
try {
mutations.syncUserInfoFromStorage();
} catch (e) {
console.warn('[App] 同步用户信息失败:', e);
// 静默失败
}
// 每次应用显示时也检查当前页面是否需要登录
this.checkCurrentPageLogin()
},
@@ -165,6 +167,9 @@
this.stopTabBarMonitor();
// #endif
},
onError: function(msg) {
console.error('[App Global Error]:', msg);
},
methods: {