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) {