diff --git a/src/pages/flowEditor/node/draggableNode/DraggableNode.tsx b/src/pages/flowEditor/node/draggableNode/DraggableNode.tsx
deleted file mode 100644
index 2e4c7d6..0000000
--- a/src/pages/flowEditor/node/draggableNode/DraggableNode.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from 'react';
-import { useStore } from '@xyflow/react';
-import styles from '@/pages/flowEditor/node/style/base.module.less';
-import NodeContent from '@/pages/flowEditor/components/nodeContent';
-
-const DraggableNode = ({ data, id }: { data: any; id: string }) => {
- const title = data.title || '任务节点';
-
- // 获取节点选中状态 - 适配React Flow v12 API
- const isSelected = useStore((state) =>
- state.nodeLookup.get(id)?.selected || false
- );
-
- return (
-
- );
-};
-
-export default DraggableNode;
\ No newline at end of file
diff --git a/src/pages/flowEditor/node/index.tsx b/src/pages/flowEditor/node/index.tsx
index 7a0a15a..df79e70 100644
--- a/src/pages/flowEditor/node/index.tsx
+++ b/src/pages/flowEditor/node/index.tsx
@@ -2,15 +2,12 @@ import React from 'react';
import { NodeTypes } from '@xyflow/react';
import StartNode from './startNode/StartNode';
import EndNode from './endNode/EndNode';
-import DraggableNode from './draggableNode/DraggableNode';
import BasicNode from './basicNode/BasicNode';
-import LocalNode from './localNode/LocalNode';
// 定义所有可用的节点类型
export const nodeTypes: NodeTypes = {
start: StartNode,
end: EndNode,
- draggable: DraggableNode,
BASIC: BasicNode
};
@@ -18,7 +15,6 @@ export const nodeTypes: NodeTypes = {
export const nodeTypeMap: Record = {
'start': 'start',
'end': 'end',
- 'draggable': 'draggable',
'basic': 'BASIC'
};
@@ -26,7 +22,6 @@ export const nodeTypeMap: Record = {
export const nodeTypeNameMap: Record = {
'start': '开始节点',
'end': '结束节点',
- 'draggable': '任务节点',
'basic': '基础节点'
};
diff --git a/src/pages/flowEditor/sideBar/config/localNodeData.ts b/src/pages/flowEditor/sideBar/config/localNodeData.ts
index 431c1f6..863055c 100644
--- a/src/pages/flowEditor/sideBar/config/localNodeData.ts
+++ b/src/pages/flowEditor/sideBar/config/localNodeData.ts
@@ -32,7 +32,6 @@ const nodeDefinitions = [
{ nodeName: '图片展示', nodeType: 'IMAGE', nodeGroup: 'common' },
{ nodeName: '代码编辑器', nodeType: 'CODE', nodeGroup: 'common' },
{ nodeName: 'REST调用', nodeType: 'REST', nodeGroup: 'common' },
- { nodeName: '任务节点', nodeType: 'draggable', nodeGroup: 'common' }
];
// 通过映射生成完整的节点数据数组