@@ -2,4 +2,196 @@ export default {
22 '/api/auth_routes' : {
33 '/form/advanced-form' : { authority : [ 'admin' , 'user' ] } ,
44 } ,
5+ '/api/menus' : {
6+ routes : [
7+ // dashboard
8+ {
9+ path : '/dashboard' ,
10+ name : 'dashboard' ,
11+ icon : 'dashboard' ,
12+ routes : [
13+ {
14+ path : '/dashboard/analysis' ,
15+ name : 'analysis' ,
16+ } ,
17+ {
18+ path : '/dashboard/monitor' ,
19+ name : 'monitor' ,
20+ } ,
21+ {
22+ path : '/dashboard/workplace' ,
23+ name : 'workplace' ,
24+ } ,
25+ ] ,
26+ } ,
27+ // forms
28+ {
29+ path : '/forms' ,
30+ icon : 'form' ,
31+ name : 'form' ,
32+ routes : [
33+ {
34+ path : '/forms/basicform' ,
35+ name : 'basicform' ,
36+ } ,
37+ {
38+ path : '/forms/stepform' ,
39+ name : 'stepform' ,
40+ hideChildrenInMenu : true ,
41+ routes : [
42+ {
43+ path : '/forms/stepform/info' ,
44+ name : 'info' ,
45+ } ,
46+ {
47+ path : '/forms/stepform/confirm' ,
48+ name : 'confirm' ,
49+ } ,
50+ {
51+ path : '/forms/stepform/result' ,
52+ name : 'result' ,
53+ } ,
54+ ] ,
55+ } ,
56+ {
57+ path : '/forms/advancedform' ,
58+ name : 'advancedform' ,
59+ authority : [ 'admin' ] ,
60+ } ,
61+ ] ,
62+ } ,
63+ // list
64+ {
65+ path : '/list' ,
66+ icon : 'table' ,
67+ name : 'list' ,
68+ routes : [
69+ {
70+ path : '/list/tablelist' ,
71+ name : 'searchtable' ,
72+ } ,
73+ {
74+ path : '/list/basiclist' ,
75+ name : 'basiclist' ,
76+ } ,
77+ {
78+ path : '/list/cardlist' ,
79+ name : 'cardlist' ,
80+ } ,
81+ {
82+ path : '/list/search' ,
83+ name : 'searchlist' ,
84+ routes : [
85+ {
86+ path : '/list/search/articles' ,
87+ name : 'articles' ,
88+ } ,
89+ {
90+ path : '/list/search/projects' ,
91+ name : 'projects' ,
92+ } ,
93+ {
94+ path : '/list/search/applications' ,
95+ name : 'applications' ,
96+ } ,
97+ ] ,
98+ } ,
99+ ] ,
100+ } ,
101+ {
102+ path : '/profile' ,
103+ name : 'profile' ,
104+ icon : 'profile' ,
105+ routes : [
106+ // profile
107+ {
108+ path : '/profile/basicprofile' ,
109+ name : 'basic' ,
110+ } ,
111+ {
112+ path : '/profile/advancedprofile' ,
113+ name : 'advanced' ,
114+ } ,
115+ ] ,
116+ } ,
117+ {
118+ name : 'result' ,
119+ icon : 'check-circle-o' ,
120+ path : '/result' ,
121+ routes : [
122+ // result
123+ {
124+ path : '/result/success' ,
125+ name : 'success' ,
126+ } ,
127+ { path : '/result/fail' , name : 'fail' } ,
128+ ] ,
129+ } ,
130+ {
131+ name : 'exception' ,
132+ icon : 'warning' ,
133+ path : '/exception' ,
134+ routes : [
135+ // exception
136+ {
137+ path : '/exception/403' ,
138+ name : 'not-permission' ,
139+ } ,
140+ {
141+ path : '/exception/404' ,
142+ name : 'not-find' ,
143+ } ,
144+ {
145+ path : '/exception/500' ,
146+ name : 'server-error' ,
147+ } ,
148+ {
149+ path : '/exception/trigger' ,
150+ name : 'trigger' ,
151+ hideInMenu : true ,
152+ } ,
153+ ] ,
154+ } ,
155+ {
156+ name : 'account' ,
157+ icon : 'user' ,
158+ path : '/account' ,
159+ routes : [
160+ {
161+ path : '/account/center' ,
162+ name : 'center' ,
163+ routes : [
164+ {
165+ path : '/account/center/articles' ,
166+ } ,
167+ {
168+ path : '/account/center/applications' ,
169+ } ,
170+ {
171+ path : '/account/center/projects' ,
172+ } ,
173+ ] ,
174+ } ,
175+ {
176+ path : '/account/settings' ,
177+ name : 'settings' ,
178+ routes : [
179+ {
180+ path : '/account/settings/baseview' ,
181+ } ,
182+ {
183+ path : '/account/settings/security' ,
184+ } ,
185+ {
186+ path : '/account/settings/binding' ,
187+ } ,
188+ {
189+ path : '/account/settings/notification' ,
190+ } ,
191+ ] ,
192+ } ,
193+ ] ,
194+ } ,
195+ ] ,
196+ } ,
5197} ;
0 commit comments