mirror of
https://gitee.com/dromara/go-view.git
synced 2024-11-29 18:28:28 +08:00
fix: 修复画布中进行拖拽图表但未移动时仍会将该操作保存至历史记录问题
This commit is contained in:
parent
f4de3189ec
commit
a8ea82e125
@ -302,7 +302,11 @@ export const useMouseHandle = () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
chartEditStore.moveComponentList(prevComponentInstance)
|
||||
|
||||
const moveComponentInstance = prevComponentInstance.filter(
|
||||
item => item.attr.offsetX !== 0 && item.attr.offsetY !== 0
|
||||
)
|
||||
moveComponentInstance.length && chartEditStore.moveComponentList(moveComponentInstance)
|
||||
}
|
||||
document.removeEventListener('mousemove', mousemove)
|
||||
document.removeEventListener('mouseup', mouseup)
|
||||
|
Loading…
Reference in New Issue
Block a user