继续修复白屏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

@@ -82,10 +82,15 @@
};
},
onLoad() {
this.fetchContractList();
// fetchContractList 移到 onShow 中,等 token 校验通过后再加载
},
onShow() {
this.$checkToken(this.$getToken());
async onShow() {
try {
await this.$checkToken(this.$getToken())
this.fetchContractList()
} catch (e) {
return
}
},
computed: {
filteredAssets() {

View File

@@ -175,12 +175,17 @@
})
}
},
onShow() {
this.$checkToken(this.$getToken())
this.checkOaAuth()
},
onLoad() {
this.fetchApplys()
// fetchApplys 移到 onShow 中,等 token 校验通过后再加载
},
async onShow() {
try {
await this.$checkToken(this.$getToken())
this.checkOaAuth()
this.fetchApplys()
} catch (e) {
return
}
}
};
</script>