Commit 8ce4d1e8 authored by 邓超's avatar 邓超

fix: 修复删除线失败问题

parent 7d7c00a4
Pipeline #72283 waiting for manual action with stages
......@@ -341,6 +341,7 @@ const FlowChart = props => {
const delNode = (delNodeIds, delNodes, delLinks) => {
setShowLeaveTip(true);
if (delNodes.length === 0) {
setDeleteLines([...DeleteLines, ...delLinks]);
diagram.commandHandler.deleteSelection();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment