From 4dc2236babbf99787044c0fa29be9cb5fa850144 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期日, 19 十月 2025 21:06:07 +0800
Subject: [PATCH] feat: 1.2.0.1

---
 apps/cMiniApp/src/hooks/router.ts |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/apps/cMiniApp/src/hooks/router.ts b/apps/cMiniApp/src/hooks/router.ts
index 29f1050..a138cc5 100644
--- a/apps/cMiniApp/src/hooks/router.ts
+++ b/apps/cMiniApp/src/hooks/router.ts
@@ -8,8 +8,9 @@
   const switchTab = (option: Taro.switchTab.Option) => {
     const index = TabBarPageRouterList.findIndex((x) => option.url.includes(x));
     console.log('index: ', index);
-    systemStore.setTabIndex(index);
-    Taro.switchTab(option);
+    Taro.switchTab(option).then(() => {
+      systemStore.setTabIndex(index);
+    });
   };
   return switchTab;
 }

--
Gitblit v1.9.1