修复获取侧边栏导航最深一级路由可能返回为空的问题

This commit is contained in:
hooray
2022-10-12 01:30:16 +08:00
parent 1ca406c475
commit 9eb5d3e6f7
+1 -1
View File
@@ -10,7 +10,7 @@ import menu from '@/menu'
function getDeepestPath(menu: Menu.recordRaw, rootPath = '') {
let retnPath = ''
if (menu.path) {
if (menu.path !== undefined) {
if (menu.children) {
if (
menu.children.some((item) => {