feat(ui): new WorkflowDetail using antd

This commit is contained in:
Fu Diwei
2024-12-24 20:39:01 +08:00
parent 8b1ae309fb
commit 4e5373de73
38 changed files with 293 additions and 320 deletions

View File

@@ -59,8 +59,8 @@ export const useWorkflowStore = create<WorkflowState>((set, get) => ({
setBaseInfo: async (name: string, description: string) => {
const data: Record<string, string | boolean | WorkflowNode> = {
id: (get().workflow.id as string) ?? "",
name: name,
description: description,
name: name || "",
description: description || "",
};
if (!data.id) {
data.draft = get().workflow.draft as WorkflowNode;