소스 검색

节点排序修改

duy 2 년 전
부모
커밋
99c996d8e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/data-fill/wbs.vue

+ 1 - 1
src/views/data-fill/wbs.vue

@@ -1042,7 +1042,7 @@ const setTreeMenuDataClick = ({key, node, data}) => {
     } else if (key === 'sort') {
         let nodes = [], childNodes = []
         if (tabKey === 'tree') {
-            childNodes = node?.parent?.childNodes || []
+            childNodes = node?.parent?.childNodes || node?.parent?.children||[]
         } else if (tabKey === 'map') {
             childNodes = node?.parentNodes?.childrenNodes || []
         }