diff --git a/frontend_nuxt/pages/message.vue b/frontend_nuxt/pages/message.vue
index e7456b780..9cccbebe3 100644
--- a/frontend_nuxt/pages/message.vue
+++ b/frontend_nuxt/pages/message.vue
@@ -14,13 +14,15 @@
通知设置
-
-
{{ formatType(pref.type) }}
-
togglePref(pref, val)"
- />
-
+
+
+
{{ formatType(pref.type) }}
+
togglePref(pref, val)"
+ />
+
+
@@ -753,6 +755,14 @@ const formatType = (t) => {
}
}
+const isAdmin = computed(() => authState.role === 'ADMIN')
+
+const needAdminSet = new Set(['POST_REVIEW_REQUEST','REGISTER_REQUEST', 'POINT_REDEEM', 'ACTIVITY_REDEEM'])
+
+const canShowNotification = (type) => {
+ return !needAdminSet.has(type) || isAdmin.value
+}
+
onActivated(async () => {
page.value = 0
await fetchNotifications({ page: 0, size: pageSize, unread: selectedTab.value === 'unread' })