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(() => {