25 lines
971 B
TypeScript
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
|