xyc
2024-08-02 fdb4fb8e81081534d296b738132b51bf149c2ef5
web/src/router/router.js
@@ -96,7 +96,6 @@
  console.log(pageRoutes, 'beforeEach pageRoutes')
  console.log(window.SITE_CONFIG['menuList'], 'beforeEach window.SITE_CONFIG[\'menuList\'] ')
*/
  if (to.name == 'home' || to.name == 'single' || window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) {
    return next()
  }
@@ -157,6 +156,7 @@
  console.log(window.SITE_CONFIG['menuList'], '3window.SITE_CONFIG[\'menuList\']')
}
/**
 * 判断当前路由是否为页面路由
 * @param {*} route 当前路由