From f32357c9f9a2c1e62ff8512d6cce65f4e65e7754 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 17:11:55 +0800
Subject: [PATCH] fix: bug

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

diff --git a/apps/bMiniApp/src/hooks/router.ts b/apps/bMiniApp/src/hooks/router.ts
index a0ac30f..73d32c1 100644
--- a/apps/bMiniApp/src/hooks/router.ts
+++ b/apps/bMiniApp/src/hooks/router.ts
@@ -1,5 +1,5 @@
 import Taro from '@tarojs/taro';
-import { TabBarPageRouter } from '@/constants';
+import { TabBarPageRouter, TabBarPageRouterList } from '@/constants';
 import { useSystemStore } from '@/stores/modules/system';
 import { httpLoggerRecord } from '@12333/utils';
 
@@ -7,7 +7,7 @@
   const systemStore = useSystemStore();
 
   const switchTab = (option: Taro.switchTab.Option) => {
-    const index = Object.values(TabBarPageRouter).findIndex((x) => option.url.includes(x));
+    const index = TabBarPageRouterList.findIndex((x) => option.url.includes(x));
     console.log('index: ', index);
     systemStore.setTabIndex(index);
     Taro.switchTab(option);

--
Gitblit v1.9.1