add comments

This commit is contained in:
lb
2022-08-02 17:06:11 +08:00
parent edc8a10cc3
commit 0566808861
6 changed files with 17 additions and 15 deletions

View File

@@ -72,6 +72,7 @@ const router = new Router({
})
router.beforeEach((to, from, next) => {
console.log('[*] === router beforeEach: ', to, from)
// 添加动态(菜单)路由
// 已添加或者当前路由为页面路由, 可直接访问
if (window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) {