From e47c70d32e6fa7c9cb16ca19a79338ea36a83e94 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 10 六月 2025 16:38:37 +0800
Subject: [PATCH] fix: v1.4

---
 apps/taro/src/hooks/router.ts |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/apps/taro/src/hooks/router.ts b/apps/taro/src/hooks/router.ts
index e53ba52..a7400ce 100644
--- a/apps/taro/src/hooks/router.ts
+++ b/apps/taro/src/hooks/router.ts
@@ -51,6 +51,7 @@
   const appStore = useAppStore();
   const { latestRoute } = storeToRefs(appStore);
   const { blLifeRecharge } = useLifeRechargeContext();
+  const system = useSystemStore();
 
   const router = Taro.useRouter();
 
@@ -58,6 +59,7 @@
   console.log('router: params', router, blLifeRecharge.accountModel.channlesNum);
 
   Taro.useTabItemTap((item) => {
+    system.setTabIndex(item.index as any);
     Taro.reLaunch({
       url: pathAddExtraParam(item.pagePath, { channelId: blLifeRecharge.accountModel.channlesNum }),
       success() {

--
Gitblit v1.9.1