|
@@ -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 || []
|
|
|
}
|