Jelajahi Sumber

# 639 数据文件管理-无法上传文件

Mr. Robot 3 bulan lalu
induk
melakukan
062fc2e6df
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/components/Tree/index.vue

+ 1 - 1
src/components/Tree/index.vue

@@ -81,7 +81,7 @@ const handleCheckChange = (data: any, checked: boolean, indeterminate: boolean)
   let checkedNodes = treeRef.value?.getCheckedNodes() || [];
 
   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 }) => ({
       name: node.name,
       file: node.path,