refactor(ui): refactor accesses state using zustand store

This commit is contained in:
Fu Diwei
2024-12-11 19:55:50 +08:00
parent b744363736
commit bb3009a124
48 changed files with 359 additions and 404 deletions

View File

@@ -9,7 +9,7 @@ import {
removeBranch,
removeNode,
updateNode,
Workflow,
WorkflowModel,
WorkflowBranchNode,
WorkflowNode,
WorkflowNodeType,
@@ -17,7 +17,7 @@ import {
import { get as getWorkflow, save as saveWorkflow } from "@/repository/workflow";
export type WorkflowState = {
workflow: Workflow;
workflow: WorkflowModel;
initialized: boolean;
updateNode: (node: WorkflowNode) => void;
addNode: (node: WorkflowNode, preId: string) => void;