Files
client-web/src/modules/notifications/routes.ts
T
2026-08-12 18:49:54 +08:00

25 lines
971 B
TypeScript

import { Bell } from '@lucide/vue'
import type { ClientModuleManifest } from '../types.ts'
export const notificationsModule = {
key: 'notifications',
navigationGroup: { title: '消息中心', icon: Bell },
routes: [
{
path: 'notifications',
name: 'notifications-list',
component: () => import('./views/NotificationsView.vue'),
release: 'active',
meta: { title: '我的消息', description: '查看本企业成员可见的站内消息', permission: 'merchant:notification:view' },
navigation: { key: 'notifications-list', title: '我的消息', icon: Bell },
},
{
path: 'notifications/:notificationId',
name: 'notification-detail',
component: () => import('./views/NotificationDetailView.vue'),
release: 'active',
meta: { title: '消息详情', description: '查看消息正文', permission: 'merchant:notification:view', keepAlive: false },
},
],
} satisfies ClientModuleManifest