Przeglądaj źródła

修复tab福利未高亮显示

zbb 3 miesięcy temu
rodzic
commit
f506af48cc
1 zmienionych plików z 1 dodań i 1 usunięć
  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;