|
@@ -9,36 +9,19 @@ Vue.use(Router);
|
|
|
const quietRoute = [
|
|
|
{
|
|
|
path: '/',
|
|
|
- component: () => import('@/components/common/Home.vue'),
|
|
|
- name: 'home',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/homeIndex/index',
|
|
|
- name: 'homeIndex',
|
|
|
- component: () => import('@views/commandDispatch/index.vue'),
|
|
|
- meta: { title: 'homeIndex' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/403',
|
|
|
- component: () => import('@views/errorPage/403.vue'),
|
|
|
- meta: { title: '403' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/404',
|
|
|
- component: () => import('@views/errorPage/404.vue'),
|
|
|
- meta: { title: '404' }
|
|
|
- },
|
|
|
- ],
|
|
|
- redirect: "/homeIndex/index",
|
|
|
+ redirect: '/homeIndex'
|
|
|
+ }, {
|
|
|
+ path: '/homeIndex',
|
|
|
+ component: () => import('@views/commandDispatch/index.vue'),
|
|
|
+ meta: { title: '首页' }
|
|
|
},
|
|
|
{
|
|
|
path: '*',
|
|
|
redirect: '/404'
|
|
|
}
|
|
|
]
|
|
|
-const route = new Router({
|
|
|
+export default new Router({
|
|
|
mode: 'history',
|
|
|
base: process.env.BASE_URL,
|
|
|
routes: quietRoute
|
|
|
});
|
|
|
-export default route;
|