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:
@@ -92,7 +92,7 @@
|
||||
this.loadBills();
|
||||
},
|
||||
onShow(){
|
||||
this.$checkToken(this.$getToken())
|
||||
this.$checkToken(this.$getToken()).catch(() => {})
|
||||
},
|
||||
methods: {
|
||||
// 切换年份选择器显示
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
this.loadBillDetail(id);
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.$checkToken(this.$getToken()).catch(() => {})
|
||||
},
|
||||
methods: {
|
||||
loadBillDetail(id) {
|
||||
|
||||
@@ -96,11 +96,16 @@
|
||||
for (let i = 5; i >= 1; i--) {
|
||||
this.years.push(year - i);
|
||||
}
|
||||
this.fetchPayRecord();
|
||||
// fetchPayRecord 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.fetchPayRecord()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
// ✅ 删除和 scroll-view 冲突的 onReachBottom
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user