1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import MainLayout from '@/layout/main/MainLayout.vue';
|
| const router = {
| path: '/widgets',
| component: MainLayout,
| name: '/widgets',
| redirect: '/widgets/index',
| meta: {
| title: '小组件',
| icon: 'appstore-o',
| },
| children: [{
| path: 'index',
| name: '/widgets/index',
| component: () => import(/* webpackChunkName: "widgets" */ '@/views/widgets/Index.vue'),
| meta: {
| title: '组件主页',
| },
| },
| ],
| };
|
| export default router;
|
|