featL 处理优化信息

This commit is contained in:
李如威 2025-09-23 10:12:14 +08:00
parent 127772bd88
commit c1f62e75ae
2 changed files with 2 additions and 2 deletions

View File

@ -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]]

View File

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