quanyawei
2023-10-18 e86b3edfe6d0cad7d744828a65ca1330e84fdcde
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;