From 3b31976e318b5fbe3c7ee03cbfd9d1de8e8c12d7 Mon Sep 17 00:00:00 2001 From: Timi Date: Tue, 15 Sep 2026 11:59:10 +0800 Subject: [PATCH] fix active style --- src/pages/tabs/HomeTab.vue | 88 ++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 37 deletions(-) diff --git a/src/pages/tabs/HomeTab.vue b/src/pages/tabs/HomeTab.vue index 365603e..31fe26d 100644 --- a/src/pages/tabs/HomeTab.vue +++ b/src/pages/tabs/HomeTab.vue @@ -5,34 +5,41 @@ :key="group.title" class="entry-group" > -

+

-
- -

-

+ +
+ +

+

+
- - - +
+ + + +
@@ -126,16 +133,10 @@ const visibleEntryGroupList = computed(() => entryGroupList entryList: group.entryList.filter(item => userStore.hasPermissions(item.permission)) })) .filter(group => group.entryList.length)); +const visibleEntryCount = computed(() => visibleEntryGroupList.value + .reduce((count, group) => count + group.entryList.length, 0)); const canReadNotify = computed(() => userStore.hasPermissions(corePermissionCodes.notify.read)); -async function go(path: string): Promise { - await router.push(path); -} - -async function goNotifyList(): Promise { - await router.push("/notify"); -} - async function loadUnreadNotifyCount(): Promise { try { unreadNotifyCount.value = Math.max(0, await NotifyAPI.countUnreadInternal()); @@ -151,7 +152,9 @@ async function loadUnreadNotifyCount(): Promise { onMounted(async () => { navBarStore.clearRight(); if (canReadNotify.value) { - navBarStore.setRightIcon("notification", goNotifyList); + navBarStore.setRightIcon("notification", async () => { + await router.push("/notify"); + }); navBarStore.setRightBadge(0); await loadUnreadNotifyCount(); } @@ -165,7 +168,7 @@ onUnmounted(() => {