From 986e6e5104a32ecf7c5769940b5bc37aaa45986a Mon Sep 17 00:00:00 2001 From: Yorlg <1839033430@qq.com> Date: Tue, 3 Feb 2026 19:00:23 +0800 Subject: [PATCH] =?UTF-8?q?perf(layout):=20=E4=BC=98=E5=8C=96=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=80=9A=E7=9F=A5=E5=B0=8F=E7=BA=A2=E7=82=B9=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91=20(#1265)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/lay-notice/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = () => { - +