mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-06-07 06:22:27 +08:00
继续修复白屏bug
This commit is contained in:
@@ -70,11 +70,18 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.loadContracts();
|
||||
// loadContracts 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
// token 有效,继续执行
|
||||
this.checkOaAuth()
|
||||
this.loadContracts()
|
||||
} catch (e) {
|
||||
// token 无效,$checkToken 内部已处理跳转登录页
|
||||
return
|
||||
}
|
||||
},
|
||||
// ✅ 删除和 scroll-view 冲突的 onReachBottom
|
||||
computed: {
|
||||
|
||||
@@ -92,9 +92,13 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.getContractDetail()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.getContractDetail()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
|
||||
Reference in New Issue
Block a user