This commit is contained in:
X1627315083@163.com
2026-03-13 11:24:29 +08:00
parent 0a472bb590
commit d52d897de5
4 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import { getTaskidResult } from '@/api/flow-canvas'
import { ElMessage } from 'element-plus'
// interface NodeOptions {
// }
export class GenerateManager {

View File

@@ -135,7 +135,7 @@ export class StateManager {
/** 获取节点 */
getNodeById(id: string) { return this.nodes.value.find((node: NodesItem) => node.id === id) }
/** 获取下级节点 */
getSubordNodeByID(id: string) { return this.nodes.value.find((node: NodesItem) => node.data.superiorID === id) }
getSubordNodeById(id: string) { return this.nodes.value.find((node: NodesItem) => node.data.superiorID === id) }
getLastNode() { console.log(this.nodes.value); return this.nodes.value[this.nodes.value.length - 1] }
/** 设置工具 */
setTool(tool: string) { this.tool.value = tool }