diff --git a/src/pages/get/index.vue b/src/pages/get/index.vue index 6653526..b42fdb6 100644 --- a/src/pages/get/index.vue +++ b/src/pages/get/index.vue @@ -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() {}, diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue index e8d9ac0..76860c3 100644 --- a/src/pages/order/order.vue +++ b/src/pages/order/order.vue @@ -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() {},