1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| import Layout from "@/layout/index.vue";
| const routes = [
| {
| path: '/redirect',
| component: Layout,
| hidden: true,
| children: [
| {
| path: '/redirect/:path(.*)',
| component: () => import('@/views/redirect/index')
| }
| ]
| },
| {
| path: '/login',
| component: () => import('@/views/login/index'),
| hidden: true
| },
| {
| path: "/",
| component: Layout,
| redirect: "/home",
| children: [
| {
| path: 'home',
| component: () => import('@/views/home/index'),
| name: 'home',
| meta: { title: '首页', icon: 'dashboard', affix: true }
| }
| ]
| },
| {
| path: "/user",
| component: Layout,
| redirect: '/user/list',
| meta: { title: "用户", icon: 'dashboard'},
| name: "users",
| children: [
| {
| path: 'list',
| component: () => import('@/views/user/list'),
| name: 'userList',
| meta: {title: '用户', icon: 'dashboard'}
| },
| ]
| },
| ];
| export default routes;
|
|