继续修复白屏bug
This commit is contained in:
@@ -36,11 +36,16 @@ export default {
|
||||
},
|
||||
onLoad(options) {
|
||||
this.cusNo = options.cusNo;
|
||||
this.loadAssets();
|
||||
// loadAssets 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.loadAssets()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
// ✅ 删除和 scroll-view 冲突的 onReachBottom
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user