iot-gateway_fontend/src/router/routes/modules/notification.ts

52 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-11-12 15:44:05 +08:00
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';
const NOTIFICATION: AppRouteRecordRaw = {
path: '/notification',
name: 'notification',
component: DEFAULT_LAYOUT,
meta: {
locale: '通知管理',
title: '通知管理',
2024-11-12 15:44:05 +08:00
requiresAuth: true,
icon: 'icon-message', // 设置图标
order: 0, // 排序路由菜单项。如果设置该值,值越高,越靠前
permissions: ['message'],
2024-11-12 15:44:05 +08:00
},
children: [
{
path: 'notice',
name: 'Notice',
2024-11-12 15:44:05 +08:00
component: () => import('@/views/notification/notice/index.vue'),
meta: {
locale: '消息管理',
title: '消息管理',
2024-11-12 15:44:05 +08:00
requiresAuth: true,
permissions: ['message:notice'],
2024-11-12 15:44:05 +08:00
},
},
{
path:'bulletin',
name:'Bulletin',
component: () => import('@/views/notification/bulletin/index.vue'),
meta:{
title: '公告管理',
2024-11-12 15:44:05 +08:00
requiresAuth: true,
permissions: ['message:bulletin'],
},
},
{
path: 'bulletinDetail/:id',
name: 'BulletinDetail',
component: () => import('@/views/notification/bulletin/components/detail.vue'),
meta: {
title: '公告详情',
requiresAuth: true,
showInMenu: false,
permissions: ['message:bulletin'],
2024-12-24 17:13:37 +08:00
},
},
2024-11-12 15:44:05 +08:00
],
};
export default NOTIFICATION;