fix: drag node push stack when enableStack is true

This commit is contained in:
baizn 2020-06-23 18:25:37 +08:00 committed by Moyee
parent 73be2a0e01
commit 2378d4eac9

View File

@ -187,7 +187,9 @@ export default {
}
// 拖动结束后,入栈
graph.pushStack('update', clone(graph.save()))
if (graph.get('enabledStack')) {
graph.pushStack('update', clone(graph.save()))
}
this.point = {};
this.origin = null;