|
|
@ -30,24 +30,39 @@ export const constantRoutes = [ |
|
|
|
component: () => import('@/views/Home/Home.vue'), |
|
|
|
name: 'home' |
|
|
|
|
|
|
|
}, { |
|
|
|
path: '/index', |
|
|
|
redirect: '/wdxx/index' |
|
|
|
|
|
|
|
// component: Layout,
|
|
|
|
// redirect: '/index',
|
|
|
|
// children: [{
|
|
|
|
// path: '/index',
|
|
|
|
// component: () =>
|
|
|
|
// import('@/views/index.vue'),
|
|
|
|
// name: 'index',
|
|
|
|
// meta: {
|
|
|
|
// title: '主页',
|
|
|
|
// noCache: true,
|
|
|
|
// affix: true
|
|
|
|
// }
|
|
|
|
// }]
|
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/message', |
|
|
|
component: Layout, |
|
|
|
redirect: '/message', |
|
|
|
meta: { |
|
|
|
title: '消息管理' |
|
|
|
}, |
|
|
|
children: [{ |
|
|
|
path: '/message/unreadmessage', |
|
|
|
component: () => import('@/views/message/unreadmessage.vue'), |
|
|
|
name: 'UnreadMessage', |
|
|
|
meta: { title: '消息管理', noCache: true } |
|
|
|
}] |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// path: '/index',
|
|
|
|
// redirect: '/wdxx/index'
|
|
|
|
//
|
|
|
|
// // component: Layout,
|
|
|
|
// // redirect: '/index',
|
|
|
|
// // children: [{
|
|
|
|
// // path: '/index',
|
|
|
|
// // component: () =>
|
|
|
|
// // import('@/views/index.vue'),
|
|
|
|
// // name: 'index',
|
|
|
|
// // meta: {
|
|
|
|
// // title: '主页',
|
|
|
|
// // noCache: true,
|
|
|
|
// // affix: true
|
|
|
|
// // }
|
|
|
|
// // }]
|
|
|
|
// },
|
|
|
|
...codemenu, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|