16
16
*/
17
17
import type { RouteRecordRaw } from "vue-router" ;
18
18
import Layout from "@/layout/Index.vue" ;
19
+ import List from "@/views/dashboard/List.vue" ;
20
+ import New from "@/views/dashboard/New.vue" ;
21
+ import Edit from "@/views/dashboard/Edit.vue" ;
22
+ import Widget from "@/views/dashboard/Widget.vue" ;
19
23
20
24
export const routesDashboard : Array < RouteRecordRaw > = [
21
25
{
@@ -32,7 +36,7 @@ export const routesDashboard: Array<RouteRecordRaw> = [
32
36
children : [
33
37
{
34
38
path : "/dashboard/list" ,
35
- component : ( ) => import ( "@/views/dashboard/ List.vue" ) ,
39
+ component : List ,
36
40
name : "List" ,
37
41
meta : {
38
42
i18nKey : "dashboardList" ,
@@ -42,7 +46,7 @@ export const routesDashboard: Array<RouteRecordRaw> = [
42
46
} ,
43
47
{
44
48
path : "/dashboard/new" ,
45
- component : ( ) => import ( "@/views/dashboard/ New.vue" ) ,
49
+ component : New ,
46
50
name : "New" ,
47
51
meta : {
48
52
i18nKey : "dashboardNew" ,
@@ -54,26 +58,26 @@ export const routesDashboard: Array<RouteRecordRaw> = [
54
58
path : "" ,
55
59
redirect : "/dashboard/:layerId/:entity/:name" ,
56
60
name : "Create" ,
57
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
61
+ component : Edit ,
58
62
meta : {
59
63
notShow : true ,
60
64
} ,
61
65
children : [
62
66
{
63
67
path : "/dashboard/:layerId/:entity/:name" ,
64
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
68
+ component : Edit ,
65
69
name : "CreateChild" ,
66
70
} ,
67
71
{
68
72
path : "/dashboard/:layerId/:entity/:name/tab/:activeTabIndex" ,
69
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
73
+ component : Edit ,
70
74
name : "CreateActiveTabIndex" ,
71
75
} ,
72
76
] ,
73
77
} ,
74
78
{
75
79
path : "" ,
76
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
80
+ component : Edit ,
77
81
name : "View" ,
78
82
redirect : "/dashboard/:layerId/:entity/:serviceId/:name" ,
79
83
meta : {
@@ -82,96 +86,96 @@ export const routesDashboard: Array<RouteRecordRaw> = [
82
86
children : [
83
87
{
84
88
path : "/dashboard/:layerId/:entity/:serviceId/:name" ,
85
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
89
+ component : Edit ,
86
90
name : "ViewChild" ,
87
91
} ,
88
92
{
89
93
path : "/dashboard/:layerId/:entity/:serviceId/:name/tab/:activeTabIndex" ,
90
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
94
+ component : Edit ,
91
95
name : "ViewActiveTabIndex" ,
92
96
} ,
93
97
] ,
94
98
} ,
95
99
{
96
100
path : "" ,
97
101
redirect : "/dashboard/related/:layerId/:entity/:serviceId/:destServiceId/:name" ,
98
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
102
+ component : Edit ,
99
103
name : "ViewServiceRelation" ,
100
104
meta : {
101
105
notShow : true ,
102
106
} ,
103
107
children : [
104
108
{
105
109
path : "/dashboard/related/:layerId/:entity/:serviceId/:destServiceId/:name" ,
106
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
110
+ component : Edit ,
107
111
name : "ViewServiceRelation" ,
108
112
} ,
109
113
{
110
114
path : "/dashboard/related/:layerId/:entity/:serviceId/:destServiceId/:name/tab/:activeTabIndex" ,
111
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
115
+ component : Edit ,
112
116
name : "ViewServiceRelationActiveTabIndex" ,
113
117
} ,
114
118
] ,
115
119
} ,
116
120
{
117
121
path : "" ,
118
122
redirect : "/dashboard/:layerId/:entity/:serviceId/:podId/:name" ,
119
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
123
+ component : Edit ,
120
124
name : "ViewPod" ,
121
125
meta : {
122
126
notShow : true ,
123
127
} ,
124
128
children : [
125
129
{
126
130
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:name" ,
127
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
131
+ component : Edit ,
128
132
name : "ViewPod" ,
129
133
} ,
130
134
{
131
135
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:name/tab/:activeTabIndex" ,
132
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
136
+ component : Edit ,
133
137
name : "ViewPodActiveTabIndex" ,
134
138
} ,
135
139
] ,
136
140
} ,
137
141
{
138
142
path : "" ,
139
143
redirect : "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:name" ,
140
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
144
+ component : Edit ,
141
145
name : "ViewProcess" ,
142
146
meta : {
143
147
notShow : true ,
144
148
} ,
145
149
children : [
146
150
{
147
151
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:name" ,
148
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
152
+ component : Edit ,
149
153
name : "ViewProcess" ,
150
154
} ,
151
155
{
152
156
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:name/tab/:activeTabIndex" ,
153
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
157
+ component : Edit ,
154
158
name : "ViewProcessActiveTabIndex" ,
155
159
} ,
156
160
] ,
157
161
} ,
158
162
{
159
163
path : "" ,
160
164
redirect : "/dashboard/:layerId/:entity/:serviceId/:podId/:destServiceId/:destPodId/:name" ,
161
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
165
+ component : Edit ,
162
166
name : "PodRelation" ,
163
167
meta : {
164
168
notShow : true ,
165
169
} ,
166
170
children : [
167
171
{
168
172
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:destServiceId/:destPodId/:name" ,
169
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
173
+ component : Edit ,
170
174
name : "ViewPodRelation" ,
171
175
} ,
172
176
{
173
177
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:destServiceId/:destPodId/:name/tab/:activeTabIndex" ,
174
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
178
+ component : Edit ,
175
179
name : "ViewPodRelationActiveTabIndex" ,
176
180
} ,
177
181
] ,
@@ -180,40 +184,40 @@ export const routesDashboard: Array<RouteRecordRaw> = [
180
184
path : "" ,
181
185
redirect :
182
186
"/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name" ,
183
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
187
+ component : Edit ,
184
188
name : "ProcessRelation" ,
185
189
meta : {
186
190
notShow : true ,
187
191
} ,
188
192
children : [
189
193
{
190
194
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name" ,
191
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
195
+ component : Edit ,
192
196
name : "ViewProcessRelation" ,
193
197
} ,
194
198
{
195
199
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name/tab/:activeTabIndex" ,
196
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
200
+ component : Edit ,
197
201
name : "ViewProcessRelationActiveTabIndex" ,
198
202
} ,
199
203
{
200
204
path : "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name/duration/:duration" ,
201
- component : ( ) => import ( "@/views/dashboard/ Edit.vue" ) ,
205
+ component : Edit ,
202
206
name : "ViewProcessRelationDuration" ,
203
207
} ,
204
208
] ,
205
209
} ,
206
210
{
207
211
path : "" ,
208
212
name : "Widget" ,
209
- component : ( ) => import ( "@/views/dashboard/ Widget.vue" ) ,
213
+ component : Widget ,
210
214
meta : {
211
215
notShow : true ,
212
216
} ,
213
217
children : [
214
218
{
215
219
path : "/page/:layer/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:config/:duration?" ,
216
- component : ( ) => import ( "@/views/dashboard/ Widget.vue" ) ,
220
+ component : Widget ,
217
221
name : "ViewWidget" ,
218
222
} ,
219
223
] ,
0 commit comments