|
@@ -22,12 +22,6 @@ import slow from './modules/slow'
|
22
|
22
|
import scrm from './modules/scrm'
|
23
|
23
|
import shop from './modules/shop'
|
24
|
24
|
|
25
|
|
-
|
26
|
|
-
|
27
|
|
-
|
28
|
|
-
|
29
|
|
-
|
30
|
|
-
|
31
|
25
|
Vue.use(Router)
|
32
|
26
|
|
33
|
27
|
/** note: submenu only apppear when children.length>=1
|
|
@@ -60,32 +54,32 @@ var _constant_router_map = [{
|
60
|
54
|
component: () => import('@/xt_pages/index/verify_token'),
|
61
|
55
|
hidden: true
|
62
|
56
|
},
|
63
|
|
- {
|
64
|
|
- path: '/404',
|
65
|
|
- component: () => import('@/views/errorPage/404'),
|
66
|
|
- hidden: true
|
67
|
|
- },
|
68
|
|
- {
|
69
|
|
- path: '/401',
|
70
|
|
- component: () => import('@/views/errorPage/401'),
|
71
|
|
- hidden: true
|
72
|
|
- },
|
73
|
|
- {
|
74
|
|
- path: '',
|
75
|
|
- component: Layout,
|
76
|
|
- redirect: '/home',
|
77
|
|
- children: [{
|
78
|
|
- path: '/home',
|
79
|
|
- component: () => import('@/xt_pages/home/index'),
|
80
|
|
- name: 'home',
|
81
|
|
- meta: {
|
82
|
|
- title: 'home',
|
83
|
|
- icon: 'dashboard',
|
84
|
|
- noCache: true
|
85
|
|
- }
|
86
|
|
- }]
|
87
|
|
- },
|
88
|
|
- service,
|
|
57
|
+{
|
|
58
|
+ path: '/404',
|
|
59
|
+ component: () => import('@/views/errorPage/404'),
|
|
60
|
+ hidden: true
|
|
61
|
+},
|
|
62
|
+{
|
|
63
|
+ path: '/401',
|
|
64
|
+ component: () => import('@/views/errorPage/401'),
|
|
65
|
+ hidden: true
|
|
66
|
+},
|
|
67
|
+{
|
|
68
|
+ path: '',
|
|
69
|
+ component: Layout,
|
|
70
|
+ redirect: '/home',
|
|
71
|
+ children: [{
|
|
72
|
+ path: '/home',
|
|
73
|
+ component: () => import('@/xt_pages/home/index'),
|
|
74
|
+ name: 'home',
|
|
75
|
+ meta: {
|
|
76
|
+ title: 'home',
|
|
77
|
+ icon: 'dashboard',
|
|
78
|
+ noCache: true
|
|
79
|
+ }
|
|
80
|
+ }]
|
|
81
|
+},
|
|
82
|
+service
|
89
|
83
|
// patient,
|
90
|
84
|
// workforce,
|
91
|
85
|
// weight_sign,
|
|
@@ -101,7 +95,7 @@ var _constant_router_map = [{
|
101
|
95
|
var _asy_router_map = [
|
102
|
96
|
patient,
|
103
|
97
|
workforce,
|
104
|
|
- // medicalScheduling,
|
|
98
|
+ medicalScheduling,
|
105
|
99
|
weight_sign,
|
106
|
100
|
dialysis,
|
107
|
101
|
stock,
|
|
@@ -113,7 +107,7 @@ var _asy_router_map = [
|
113
|
107
|
scrm,
|
114
|
108
|
shop,
|
115
|
109
|
integration,
|
116
|
|
- systems,
|
|
110
|
+ systems
|
117
|
111
|
]
|
118
|
112
|
|
119
|
113
|
var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证
|