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