Explorar o código

修复tab福利未高亮显示

zbb hai 3 meses
pai
achega
f506af48cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/CustomTabBar.tsx

+ 1 - 1
components/CustomTabBar.tsx

@@ -44,7 +44,7 @@ export function CustomTabBar() {
     // Check Box
     if (segments[1] === 'box' || pathname?.startsWith('/box')) return 1;
     // Check Welfare
-    if ((segments[1] as string) === 'weal' || pathname?.startsWith('/weal')) return 2;
+    if ((segments[1] as string) === 'weal' || (segments[1] as string) === 'welfare' || pathname?.startsWith('/weal') || pathname?.startsWith('/welfare')) return 2;
     // Check Mine
     if (segments[1] === 'mine' || pathname?.startsWith('/mine')) return 3;