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
49
50
51
52
53
54
| 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: "/details",
| component: Layout,
| redirect: '/details/index',
| meta: { title: "详情", icon: 'dashboard'},
| name: "details",
| children: [
| {
| path: 'index',
| component: () => import('@/views/details/index'),
| name: 'Details',
| meta: {title: '详情', icon: 'details'}
| },
| {
| path: 'index1',
| component: () => import('@/views/details/index'),
| name: 'Details',
| meta: {title: '详情', icon: 'details'}
| }
| ]
| }
| ];
| export default routes;
|
|