修复订单刷新bug

This commit is contained in:
TOP糯米 2023-04-14 14:27:41 +08:00
parent 3aecf9afa3
commit e6bd059d9f
2 changed files with 6 additions and 6 deletions

View File

@ -127,12 +127,12 @@ export default {
this.pageConfig = getApp().globalData.pageConfig;
},
onShow() {
if (this.refreshGet && this.getTabIndex == this.tabIndex) {
this.switchTab(this.tabIndex);
}
if (this.getTabIndex != this.tabIndex) {
this.tabIndex = this.getTabIndex;
}
if (this.refreshGet) {
this.switchTab(this.tabIndex);
}
},
onReady() {},
onHide() {},

View File

@ -115,12 +115,12 @@ export default {
},
onLoad() {},
onShow() {
if (this.refreshOrder && this.orderTabIndex == this.tabIndex) {
this.switchTab(this.tabIndex);
}
if (this.orderTabIndex != this.tabIndex) {
this.tabIndex = this.orderTabIndex;
}
if (this.refreshOrder) {
this.switchTab(this.tabIndex);
}
},
onReady() {},
onHide() {},