[update 拆分排序] 修改拖拽到节点中序号错误的问题

This commit is contained in:
danshihao
2024-09-25 10:35:22 +08:00
parent 292f3df9d1
commit 8b1822a661
2 changed files with 2 additions and 2 deletions
@@ -405,7 +405,7 @@ export default {
const sourceId = info.dragNode.eventKey
const targetId = info.node.eventKey
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
let displaySeq = 0
let displaySeq = info.node.dataRef.displaySeq
const children = info.node.dataRef.children || []
if (children && children.length) {
displaySeq = children[children.length - 1].displaySeq
@@ -133,7 +133,7 @@ export default {
const sourceId = this.checkTreeKeys.checked.join(',')
const targetId = info.node.eventKey
// 序号,拖拽到节点里面,就把序号设置成最后一个节点的序号
let displaySeq = 0
let displaySeq = info.node.dataRef.displaySeq
const children = info.node.dataRef.children || []
if (children && children.length) {
displaySeq = children[children.length - 1].displaySeq