Skip to content

Commit ea0602a

Browse files
committed
add comment
1 parent 896b736 commit ea0602a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/router/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
* */
3642
export 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+
*/
108118
export 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,

0 commit comments

Comments
 (0)