From e6bd059d9f2bdca748679cd114060d7b6b0c91cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Fri, 14 Apr 2023 14:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95=E5=88=B7?= =?UTF-8?q?=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/get/index.vue | 6 +++--- src/pages/order/order.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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() {},