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
55
56
57
58
59
60
61
62
63
64
65
| import { UserLayout, TabLayout, RouteView, BlankLayout, PageView } from '@/components/layouts'
|
| /**
| * 走菜单,走权限控制
| * @type {[null,null]}
| */
| export const asyncRouterMap = [
|
| {
| path: '/',
| name: 'dashboard',
| component: TabLayout,
| meta: { title: '首页' },
| redirect: '/dashboard/analysis',
| children: [
|
| ]
| },
| {
| path: '*', redirect: '/404', hidden: true
| }
| ]
|
| /**
| * 基础路由
| * @type { *[] }
| */
| export const constantRouterMap = [
| {
| path: '/user',
| component: UserLayout,
| redirect: '/user/login',
| hidden: true,
| children: [
| {
| path: 'login',
| name: 'login',
| component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
| },
| {
| path: 'register',
| name: 'register',
| component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
| }
| ]
| },
| {
| path: '/dashboard',
| component: TabLayout,
| redirect: '/dashboard/analysis',
| children: [
| {
| path: 'analysis',
| name: 'analysis',
| meta: { title: '首页' },
| component: () => import(/* webpackChunkName: "dashboard" */ '@/views/dashboard/Analysis')
| }
| ]
| },
| {
| path: '/404',
| component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
| },
|
| ]
|
|