Explorar o código

节点排序修改

duy %!s(int64=2) %!d(string=hai) anos
pai
achega
99c996d8e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 || []
         }