mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:48:39 +08:00
chore: 代码微调
This commit is contained in:
@@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore(
|
||||
if (item.children) {
|
||||
return isPathInMenus(item.children, path)
|
||||
}
|
||||
return path.indexOf(`${item.path}/`) === 0 || path === item.path
|
||||
return path.startsWith(`${item.path}/`) || path === item.path
|
||||
})
|
||||
return flag
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user