chore: 代码微调

This commit is contained in:
Hooray
2026-07-04 03:42:46 +08:00
parent 70506506be
commit fd33ab0c73
12 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -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
}