|
@@ -10,10 +10,12 @@ const quietRoute = [
|
|
|
{
|
|
|
path: '/',
|
|
|
component: () => import('@/components/common/Home.vue'),
|
|
|
- redirect: '/index',
|
|
|
+ name: 'home',
|
|
|
+ redirect: "/index",
|
|
|
children: [
|
|
|
{
|
|
|
path: '/index',
|
|
|
+ name: 'index',
|
|
|
component: () => import('@views/commandDispatch/index.vue'),
|
|
|
meta: { title: 'index' }
|
|
|
},
|
|
@@ -27,16 +29,16 @@ const quietRoute = [
|
|
|
component: () => import('@views/errorPage/404.vue'),
|
|
|
meta: { title: '404' }
|
|
|
},
|
|
|
- {
|
|
|
- path: '*',
|
|
|
- redirect: '/404'
|
|
|
- }
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ path: '*',
|
|
|
+ redirect: '/404'
|
|
|
+ }
|
|
|
]
|
|
|
const route = new Router({
|
|
|
mode: 'history',
|
|
|
base: process.env.BASE_URL,
|
|
|
- routes: [...quietRoute]
|
|
|
+ routes: quietRoute
|
|
|
});
|
|
|
export default route;
|