继续修复白屏bug

This commit is contained in:
2026-06-03 16:02:11 +08:00
parent ff60913b5b
commit b2275c2636
19 changed files with 158 additions and 71 deletions

View File

@@ -43,11 +43,16 @@ export default {
}
},
onLoad() { // ✅ 修复生命周期拼写
this.fetchMessageList();
// fetchMessageList 移到 onShow 中,等 token 校验通过后再加载
},
onShow() {
this.$checkToken(this.$getToken())
this.checkOaAuth()
async onShow() {
try {
await this.$checkToken(this.$getToken())
this.checkOaAuth()
this.fetchMessageList()
} catch (e) {
return
}
},
// ✅ 删除和 scroll-view 冲突的 onReachBottom
computed: {

View File

@@ -23,7 +23,7 @@ export default {
}
},
onShow() {
this.$checkToken(this.$getToken())
this.$checkToken(this.$getToken()).catch(() => {})
},
onLoad(e) {
this.id = e.id