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: {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -43,11 +43,16 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad() { // ✅ 修复生命周期拼写
|
||||
this.fetchMessageList();
|
||||
// fetchMessageList 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.fetchMessageList()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
// ✅ 删除和 scroll-view 冲突的 onReachBottom
|
||||
computed: {
|
||||
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.$checkToken(this.$getToken()).catch(() => {})
|
||||
},
|
||||
onLoad(e) {
|
||||
this.id = e.id
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -96,10 +96,15 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(options){
|
||||
this.fetchReserve()
|
||||
// fetchReserve 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.fetchReserve()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
// ✅ 删除 scroll-view 冲突的 onReachBottom
|
||||
methods: {
|
||||
|
||||
@@ -82,11 +82,16 @@
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.loadBills();
|
||||
// loadBills 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.loadBills()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkOaAuth() {
|
||||
|
||||
@@ -80,11 +80,16 @@
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.loadBills();
|
||||
// loadBills 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.loadBills()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
// ❌ 已删除冲突的 onReachBottom
|
||||
methods: {
|
||||
|
||||
@@ -77,11 +77,16 @@
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.loadBills();
|
||||
// loadBills 移到 onShow 中,等 token 校验通过后再加载
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
async onShow() {
|
||||
try {
|
||||
await this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
this.loadBills()
|
||||
} catch (e) {
|
||||
return
|
||||
}
|
||||
},
|
||||
// ❌ 已删除冲突的 onReachBottom
|
||||
methods: {
|
||||
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.$checkToken(this.$getToken()).catch(() => {})
|
||||
},
|
||||
onLoad() {
|
||||
this.fetchDataList();
|
||||
|
||||
Reference in New Issue
Block a user