mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:28:49 +08:00
fix: 修复获取侧边栏导航最深一级路由可能返回为空的问题
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user