|
@@ -81,7 +81,7 @@ const handleCheckChange = (data: any, checked: boolean, indeterminate: boolean)
|
|
let checkedNodes = treeRef.value?.getCheckedNodes() || [];
|
|
let checkedNodes = treeRef.value?.getCheckedNodes() || [];
|
|
|
|
|
|
fileList.value = checkedNodes
|
|
fileList.value = checkedNodes
|
|
- .filter((node: { isDirectory: boolean }) => !node.isDirectory) // 过滤掉 isDirectory 为 false 的节点
|
|
|
|
|
|
+ // .filter((node: { isDirectory: boolean }) => !node.isDirectory) // 过滤掉 isDirectory 为 false 的节点
|
|
.map((node: { name: string; path: string; isDirectory: boolean }) => ({
|
|
.map((node: { name: string; path: string; isDirectory: boolean }) => ({
|
|
name: node.name,
|
|
name: node.name,
|
|
file: node.path,
|
|
file: node.path,
|