From 4deb99b5baf58296cb30f1343a9b00446582a8b9 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 05 十二月 2025 17:22:01 +0800
Subject: [PATCH] release: @12333/cMiniApp v1.1.15

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

diff --git a/apps/bMiniApp/src/hooks/router.ts b/apps/bMiniApp/src/hooks/router.ts
index 73d32c1..70652a0 100644
--- a/apps/bMiniApp/src/hooks/router.ts
+++ b/apps/bMiniApp/src/hooks/router.ts
@@ -9,8 +9,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);
+    });
     httpLoggerRecord.info({
       message: `[switchTab]`,
       args: [option, { index, TabBarPageRouter }],

--
Gitblit v1.10.0