feat: 顶部通知铃铛与站内通知中心
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m7s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m7s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { RoutesAlias } from '../routesAlias'
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
import { BULK_PURCHASE_PERMISSIONS } from '@/config/constants/bulkPurchase'
|
||||
import { NOTIFICATION_PERMISSIONS } from '@/config/constants/notification'
|
||||
|
||||
/**
|
||||
* 菜单列表、异步路由
|
||||
@@ -13,6 +14,28 @@ import { BULK_PURCHASE_PERMISSIONS } from '@/config/constants/bulkPurchase'
|
||||
* 可以是 i18n 的 key,也可以是字符串,比如:'用户列表'
|
||||
*/
|
||||
export const asyncRoutes: AppRouteRecord[] = [
|
||||
// 站内通知
|
||||
{
|
||||
path: '/notifications',
|
||||
name: 'Notifications',
|
||||
component: RoutesAlias.Home,
|
||||
meta: {
|
||||
title: '通知中心'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'NotificationCenter',
|
||||
component: RoutesAlias.Notifications,
|
||||
meta: {
|
||||
title: '通知中心',
|
||||
permissions: [NOTIFICATION_PERMISSIONS.page],
|
||||
keepAlive: true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
// 仪表台
|
||||
{
|
||||
name: 'Dashboard',
|
||||
|
||||
Reference in New Issue
Block a user