From 99bafe2a2588853c2dd4c73c2d2a2cb1837bf688 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 21 八月 2025 17:16:40 +0800
Subject: [PATCH] feat: 实名
---
apps/bMiniApp/src/custom-tab-bar/index.tsx | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/apps/bMiniApp/src/custom-tab-bar/index.tsx b/apps/bMiniApp/src/custom-tab-bar/index.tsx
index 72aab82..aec7fa4 100644
--- a/apps/bMiniApp/src/custom-tab-bar/index.tsx
+++ b/apps/bMiniApp/src/custom-tab-bar/index.tsx
@@ -112,6 +112,7 @@
}
return () => {
+ const _router = Taro.useRouter();
return (
<View
class="bottom-tab"
@@ -124,7 +125,7 @@
icon="../assets/tabbar/icon-home.png"
activeIcon="../assets/tabbar/icon-home-active.png"
pagePath={TabBarPageRouter.Home}
- currentPath={router.path}
+ currentPath={_router.path}
index={0}
active={system.activeTab === 0}
className="home"
@@ -135,7 +136,7 @@
icon="../assets/tabbar/icon-task.png"
activeIcon="../assets/tabbar/icon-task-active.png"
pagePath={TabBarPageRouter.Workbenches}
- currentPath={router.path}
+ currentPath={_router.path}
active={system.activeTab === 1}
className="task"
onClick={switchTab}
@@ -146,7 +147,7 @@
icon="../assets/tabbar/icon-mine.png"
activeIcon="../assets/tabbar/icon-mine-active.png"
pagePath={TabBarPageRouter.Mine}
- currentPath={router.path}
+ currentPath={_router.path}
active={system.activeTab === 2}
className="mine"
onClick={switchTab}
--
Gitblit v1.9.1