2024-04-06 13:25:13 +08:00
|
|
|
// Hooks
|
|
|
|
import fetchNotifications from 'new-dashboard/router/hooks/fetch-notifications';
|
|
|
|
|
|
|
|
// Lazy Pages
|
|
|
|
const Notifications = () => import('new-dashboard/pages/Notifications');
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: '/notifications',
|
|
|
|
name: 'notifications',
|
|
|
|
component: Notifications,
|
|
|
|
meta: {
|
2024-04-09 20:21:23 +08:00
|
|
|
title: () => '通知 | 快点'
|
2024-04-06 13:25:13 +08:00
|
|
|
},
|
|
|
|
beforeEnter: fetchNotifications
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|