diff --git a/track-uniapp/src/pages/scan/components/FlowTree.vue b/track-uniapp/src/pages/scan/components/FlowTree.vue index 55fd03f..7486050 100644 --- a/track-uniapp/src/pages/scan/components/FlowTree.vue +++ b/track-uniapp/src/pages/scan/components/FlowTree.vue @@ -21,6 +21,8 @@ + + - + !c.parent_task_id || c.task_type === "TRANSFER" || c.task_type === "RECOVERY" ); }, // 分支子任务:其余(SPAWN 协助等),缩进显示 + // 分支上下文拦截:处于分支时,全部子任务都作为分支继续缩进 branchChildren() { + if (this.isBranchContext) return this.node.child_tasks || []; return (this.node.child_tasks || []).filter((c) => c.parent_task_id && c.task_type !== "TRANSFER" && c.task_type !== "RECOVERY" );