|
@@ -30,6 +30,7 @@ import Layout from '@/layout'
|
|
|
|
|
|
// 公共路由
|
|
|
export const constantRoutes = [
|
|
|
+
|
|
|
{
|
|
|
path: '/redirect',
|
|
|
component: Layout,
|
|
@@ -87,7 +88,55 @@ export const constantRoutes = [
|
|
|
meta: { title: '个人中心', icon: 'user' }
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path:"/noticeList",
|
|
|
+ component:Layout,
|
|
|
+ meta:{ title:'公告管理' ,icon:'dashboard'},
|
|
|
+ children:[
|
|
|
+ {
|
|
|
+ path: 'noticeList',
|
|
|
+ component: () => import('@/views/notice/noticeList'),
|
|
|
+ name: 'noticeList',
|
|
|
+ meta: { title: '公告列表', icon: 'user' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'addnotice',
|
|
|
+ component: () => import('@/views/notice/addNotice'),
|
|
|
+ name: 'addNotice',
|
|
|
+ meta: { title: '添加公告', icon: 'user' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/messageList',
|
|
|
+ component: Layout,
|
|
|
+ // redirect: '消息管理',
|
|
|
+ meta: { title: '消息管理', icon : "message" },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'messageList',
|
|
|
+ component: () => import('@/views/message/messageList'),
|
|
|
+ name: 'messageList',
|
|
|
+ meta: { title: '消息列表', icon: 'list' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'addMessage',
|
|
|
+ component: () => import('@/views/message/addMessage'),
|
|
|
+ name: 'addMessage',
|
|
|
+ meta: { title: '创建消息', icon: 'build' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path:'messageDetails',
|
|
|
+ component:() => import('@/views/message/messageDetails'),
|
|
|
+ name: 'messageDetails',
|
|
|
+ meta: { title:'公告详情', icon:'user'},
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
+ // messageDetails
|
|
|
+ ]
|
|
|
+ }
|
|
|
+
|
|
|
]
|
|
|
|
|
|
// 动态路由,基于用户权限动态去加载
|
|
@@ -106,6 +155,7 @@ export const dynamicRoutes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
path: '/system/role-auth',
|
|
|
component: Layout,
|
|
@@ -161,7 +211,8 @@ export const dynamicRoutes = [
|
|
|
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
]
|
|
|
|
|
|
// 防止连续点击多次路由报错
|