From fd9e0173c1ca6f70197ed680570e839efff5faba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Thu, 30 Mar 2023 21:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A5=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/get/detail.vue | 3 ++- src/pages/get/index.vue | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/get/detail.vue b/src/pages/get/detail.vue index 3525635..05b9eb7 100644 --- a/src/pages/get/detail.vue +++ b/src/pages/get/detail.vue @@ -221,7 +221,8 @@ export default { }) .then((message) => { this.$utils.toast(message).then(() => { - this.switchTab(this.tabIndex); + this.$store.commit("system/refreshGet", true); + this.$utils.toPage("", {}, "back"); }); }) .catch((e) => { diff --git a/src/pages/get/index.vue b/src/pages/get/index.vue index 2a14228..a6bbc10 100644 --- a/src/pages/get/index.vue +++ b/src/pages/get/index.vue @@ -151,6 +151,9 @@ export default { currentTab.page = 1; currentTab.more = true; currentTab.list = []; + uni.pageScrollTo({ + scrollTop: 0, + }); this.loadData(); }, setTabHeight() {