duy 10 달 전
부모
커밋
a48d6dbf6f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/views/project/list/independent/index.vue

+ 1 - 2
src/views/project/list/independent/index.vue

@@ -271,7 +271,7 @@ const refreshTreeData = ()=>{
         refreshTree()
         nextTick(()=>{
             defaultExpandKey.value.push(curNode.value.data.id)
-            treeRef.value.setCurrentKey(curNode.value.data.id)
+            treeRef.value?.setCurrentKey(curNode.value.data.id)
         })
       
       } else {
@@ -295,7 +295,6 @@ const updateTreeNewNode = ()=>{
                 tableData.value = [ele]
             }
         })
-       
        })
       })
 }