diff --git a/src/layout/components/lay-notice/index.vue b/src/layout/components/lay-notice/index.vue index e31dad803..55e959fb2 100644 --- a/src/layout/components/lay-notice/index.vue +++ b/src/layout/components/lay-notice/index.vue @@ -24,6 +24,12 @@ const currentNoticeHasData = computed(() => { return currentNotice && currentNotice.list.length > 0; }); +const hasAnyNoticeData = computed(() => { + return notices.value.some( + item => Array.isArray(item.list) && item.list.length > 0 + ); +}); + const onWatchMore = () => { dropdownRef.value.handleClose(); }; @@ -43,7 +49,7 @@ const onMarkAsRead = () => { - +