Browse Source

修复bug

tangning 2 months ago
parent
commit
9c71225f08
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/scenes/folderTreeModal.vue

+ 2 - 1
src/views/scenes/folderTreeModal.vue

@@ -20,6 +20,7 @@
       </div>
       <div class="treeList">
         <Tree
+          v-if="treeData.length"
           class="draggable-tree"
           v-model:selectedKeys="selectedKeys"
           :tree-data="treeData"
@@ -71,7 +72,7 @@
         title: '',
         numList: [],
       });
-      const expandedKeys = ref<string[]>(['0-0', '0-1']);
+      const expandedKeys = ref<string[]>([]);
       const selectedKeys = ref<string[]>([]);
       const treeData: TreeProps['treeData'] = ref([]);
       const checked = ref<boolean>(false);