CN-906 fix: 面包屑功能调整(部分)

This commit is contained in:
chenjinsong
2023-02-24 18:51:17 +08:00
parent def8851da0
commit f87714fae2
5 changed files with 95 additions and 44 deletions

View File

@@ -36,11 +36,12 @@ router.beforeEach(async (to, from, next) => {
store.commit('setRoleList', roleList)
}
if (to.path) {
if (hasMenu(store.getters.menuList, to.path)) {
next()
/* if (hasMenu(store.getters.menuList, to.path)) {
next()
} else {
ElMessage.error('No access') // TODO 国际化
}
} */
}
}
} else {