From 9c8b6d1cf6b43c6652b5183cd0183e8e257001f7 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 11 九月 2025 17:41:31 +0800 Subject: [PATCH] feat: 页面 --- apps/cMiniApp/src/custom-tab-bar/index.tsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/apps/cMiniApp/src/custom-tab-bar/index.tsx b/apps/cMiniApp/src/custom-tab-bar/index.tsx index fec3385..aa19d04 100644 --- a/apps/cMiniApp/src/custom-tab-bar/index.tsx +++ b/apps/cMiniApp/src/custom-tab-bar/index.tsx @@ -29,7 +29,8 @@ const TarBarItem = function (props: TarBarItemProps, context: SetupContext<TarBarItemEvents>) { const _badge = props.badge > 99 ? '99+' : props.badge; - const isActive = props.currentPath.toLowerCase().includes(props.pagePath.toLowerCase()); + // const isActive = props.currentPath.toLowerCase().includes(props.pagePath.toLowerCase()); + const isActive = props.active; return ( <div class={['bottom-tab-item', { active: isActive }, props.className]} -- Gitblit v1.9.1