From ea0602a50fa134a7147c2e18e40fc59e6f3c950a Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 25 Mar 2019 10:42:30 +0800 Subject: [PATCH] add comment --- src/router/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 6f70e754..3132452b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -33,6 +33,12 @@ import nestedRouter from './modules/nested' 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 = [ { 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 = [ { 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, chartsRouter, nestedRouter,