File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ import nestedRouter from './modules/nested'
3333 affix: true if true, the tag will affix in the tags-view
3434 }
3535**/
36+
37+ /**
38+ * constantRoutes
39+ * a base page that does not have permission requirements
40+ * all roles can be accessed
41+ * */
3642export const constantRoutes = [
3743 {
3844 path : '/redirect' ,
@@ -105,6 +111,10 @@ export const constantRoutes = [
105111 }
106112]
107113
114+ /**
115+ * asyncRoutes
116+ * the routes that need to be dynamically loaded based on user roles
117+ */
108118export const asyncRoutes = [
109119 {
110120 path : '/permission' ,
@@ -160,7 +170,7 @@ export const asyncRoutes = [
160170 ]
161171 } ,
162172
163- /** When your routing table is too long, you can split it into small modules**/
173+ /** when your routing map is too long, you can split it into small modules **/
164174 componentsRouter ,
165175 chartsRouter ,
166176 nestedRouter ,
You can’t perform that action at this time.
0 commit comments