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:
@@ -78,12 +78,17 @@
|
||||
this.scrollTop = e.scrollTop;
|
||||
this.updateNavbarStyle(e.scrollTop);
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
},
|
||||
onLoad() {
|
||||
this.fetchFallback();
|
||||
// fetchFallback 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.fetchFallback()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkOaAuth() {
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
this.updateNavbarStyle(e.scrollTop);
|
||||
},
|
||||
onShow(){
|
||||
this.$checkToken(this.$getToken())
|
||||
this.$checkToken(this.$getToken()).catch(() => {})
|
||||
},
|
||||
onLoad(options) {
|
||||
// 从路由参数中获取留言ID
|
||||
|
||||
Reference in New Issue
Block a user