Commit 1c938ebe authored by wuyongsheng's avatar wuyongsheng

fix: 点击流算子锚点调转

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