1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

add comment

This commit is contained in:
Pan 2019-03-25 10:42:30 +08:00
parent 896b7369bf
commit ea0602a50f

View File

@ -33,6 +33,12 @@ import nestedRouter from './modules/nested'
affix: true if true, the tag will affix in the tags-view affix: true if true, the tag will affix in the tags-view
} }
**/ **/
/**
* constantRoutes
* a base page that does not have permission requirements
* all roles can be accessed
* */
export const constantRoutes = [ export const constantRoutes = [
{ {
path: '/redirect', path: '/redirect',
@ -105,6 +111,10 @@ export const constantRoutes = [
} }
] ]
/**
* asyncRoutes
* the routes that need to be dynamically loaded based on user roles
*/
export const asyncRoutes = [ export const asyncRoutes = [
{ {
path: '/permission', path: '/permission',
@ -160,7 +170,7 @@ export const asyncRoutes = [
] ]
}, },
/** When your routing table is too long, you can split it into small modules**/ /** when your routing map is too long, you can split it into small modules **/
componentsRouter, componentsRouter,
chartsRouter, chartsRouter,
nestedRouter, nestedRouter,