{{ detail?.content || '暂无消息内容' }}
From 71b33613615185d60d438d189c1a47dca37233c7 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Wed, 12 Aug 2026 18:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/AppLayout.vue | 4 +- .../notifications/api/notifications.ts | 48 +++++++++++-------- src/modules/notifications/contracts.ts | 4 +- .../notifications/notifications.test.mjs | 11 +++-- src/modules/notifications/routes.ts | 9 ++-- .../views/NotificationDetailView.vue | 6 +-- .../notifications/views/NotificationsView.vue | 25 +++++----- src/navigation/clientNavigation.test.mjs | 5 ++ src/styles/shell.css | 3 +- 9 files changed, 67 insertions(+), 48 deletions(-) diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue index 054fbeb..c8d4e7e 100644 --- a/src/layouts/AppLayout.vue +++ b/src/layouts/AppLayout.vue @@ -141,7 +141,7 @@ watch(mobileMenuOpen, async (open, wasOpen) => { }) onMounted(() => { - void notifications.refreshUnreadCount() + if (auth.hasPermission('merchant:notification:view')) void notifications.refreshUnreadCount() document.addEventListener('keydown', handleKeydown) window.addEventListener('beforeunload', handleBeforeUnload) desktopMediaQuery = window.matchMedia('(min-width: 721px)') @@ -202,7 +202,7 @@ async function handleLogout() {
{{ pageDescription }}
消息详情
{{ errorMessage }}
{{ detail?.content || '暂无消息内容' }}
消息中心
仅显示当前登录企业和成员可见的站内消息。
{{ errorMessage }}
{{ errorMessage }}