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

This commit is contained in:
hooray
2022-10-12 01:30:40 +08:00
parent a0708253af
commit 07b9e31b22
+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) => {