Commit 1c938ebe authored by wuyongsheng's avatar wuyongsheng

fix: 点击流算子锚点调转

parent 3c78df97
......@@ -511,7 +511,7 @@ const ConfigForm = (props: ConfigFormProps) => {
return null;
}
return (
<div className={styles.flowConfigBox} key={flow.id}>
<div className={styles.flowConfigBox} key={flow.id} id={`point${flow.id}`}>
<div className={styles.flowTitle}>
{flow.title}
{flow.description && (
......
......@@ -406,14 +406,12 @@ const Flow = (props: IProps) => {
const onNodeClick = (e: any, node: Node) => {
tasks?.forEach((item) => {
if (item.id === node.id) {
if (item.type === "BATCH") {
setNodeIdFun(node.id);
} else {
if (item.type !== "BATCH") {
setInSideFlowNodeId(node.id);
setInSideBatchNodeId("");
setSelectedBatchNodeId && setSelectedBatchNodeId("");
}
}
setNodeIdFun(node.id);
}
});
if (onFlowNodeClick) {
......
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