|
@@ -64,19 +64,19 @@ export const constantRoutes = [
|
|
|
component: () => import('@/views/error-page/401'),
|
|
component: () => import('@/views/error-page/401'),
|
|
|
hidden: true
|
|
hidden: true
|
|
|
},
|
|
},
|
|
|
- // {
|
|
|
|
|
- // path: '/dashboard',
|
|
|
|
|
- // component: Layout,
|
|
|
|
|
- // redirect: '/dashboard',
|
|
|
|
|
- // children: [
|
|
|
|
|
- // {
|
|
|
|
|
- // path: 'dashboard',
|
|
|
|
|
- // component: () => import('@/views/dashboard/index'),
|
|
|
|
|
- // name: '首页',
|
|
|
|
|
- // meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
|
|
- // }
|
|
|
|
|
- // ]
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/dashboard',
|
|
|
|
|
+ component: Layout,
|
|
|
|
|
+ redirect: '/dashboard',
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'dashboard',
|
|
|
|
|
+ component: () => import('@/views/dashboard/index'),
|
|
|
|
|
+ name: '首页',
|
|
|
|
|
+ meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
path: '/',
|
|
path: '/',
|
|
|
component: Layout,
|
|
component: Layout,
|