feat: flow

This commit is contained in:
zhanghao 2026-07-08 11:14:40 +08:00
parent 587ba3482e
commit 9ff9194e41

View File

@ -546,14 +546,6 @@ const initFlow = () => {
return false return false
} }
const { nodes } = lf.getSelectElements();
//
const hasProtectedNode = nodes.some(node => ["start", "end"].includes(node.type));
if (hasProtectedNode) {
lf.selectElementById(null);
return false;
}
const { nodes, edges } = lf.getSelectElements(); const { nodes, edges } = lf.getSelectElements();
if (nodes.length > 0) { if (nodes.length > 0) {
// //