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