20 lines
408 B
JavaScript
20 lines
408 B
JavaScript
// 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: {
|
|
title: () => '通知 | 快点'
|
|
},
|
|
beforeEnter: fetchNotifications
|
|
}
|
|
];
|
|
|
|
export default routes;
|