From c1f62e75ae8c1ecae6092c8e3e0a486e7f12f68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A6=82=E5=A8=81?= Date: Tue, 23 Sep 2025 10:12:14 +0800 Subject: [PATCH] =?UTF-8?q?featL=20=E5=A4=84=E7=90=86=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 2 +- frontend/src/pages/Flow/Detail.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index f13945d..2346317 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -286,7 +286,7 @@ def create_app(): async def flows_list(user: DB.User = Depends(get_current_user)): global_tasks = app.state.tasks global_status = app.state.task_nodes - db_filter = { "id_deleted": 0 } + db_filter = { "is_deleted": 0 } if user.level != 0: work_ids = await DB.WorkUserRelation.filter(user_id=user.id).values_list("work_id", flat=True) db_filter["id__in": work_ids if work_ids else [0]] diff --git a/frontend/src/pages/Flow/Detail.jsx b/frontend/src/pages/Flow/Detail.jsx index e7c090c..b1b2d1c 100644 --- a/frontend/src/pages/Flow/Detail.jsx +++ b/frontend/src/pages/Flow/Detail.jsx @@ -116,7 +116,7 @@ const FlowDetail = () => { sourcePosition: 'right', targetPosition: 'left', type: e.type, - data: { label: e.title, style: { backgroundColor: COLORS[e.type] }, position: POSITION[e.type] }, + data: { label: e?.title || '开始' , style: { backgroundColor: COLORS[e.type] }, position: POSITION[e.type] }, detail: e }) if (e.edge) {