Explorar el Código

节点排序修改

duy hace 2 años
padre
commit
99c996d8e6
Se han modificado 1 ficheros con 1 adiciones y 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 || []
         }