Procházet zdrojové kódy

修复tab福利未高亮显示

zbb před 3 měsíci
rodič
revize
f506af48cc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;