修复BUG: 修复动态菜单的bug

pull/58/head
猿小天 2022-05-19 10:01:40 +08:00
parent 5aae10fed1
commit 37143f8230
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ router.beforeEach(async (to, from, next) => {
// 处理路由 得到每一级的路由设置
store.commit('d2admin/page/init', routes)
// router.addRoutes(routes)
routes.forEach(route => router.addRoute(route))
router.addRoutes(routes)
// routes.forEach(route => router.addRoute(route))
const menu = handleAsideMenu(ret)
const aside = handleAsideMenu(ret.filter(value => value.visible === true))