fix: find subfolder incorrect (#154)

This commit is contained in:
Hayden
2025-02-24 11:07:43 +08:00
committed by GitHub
parent 312138f981
commit 965905305e
2 changed files with 17 additions and 6 deletions

View File

@@ -193,7 +193,10 @@ const sortOrderOptions = ref(
const currentDataList = computed(() => {
let renderedList = dataTreeList.value
for (const folderItem of folderPaths.value) {
const found = findFolder(renderedList, folderItem.name)
const found = findFolder(renderedList, {
basename: folderItem.name,
pathIndex: folderItem.pathIndex,
})
renderedList = found?.children || []
}