diff --git a/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/PlanModification.vue b/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/PlanModification.vue index 176a4aa..6404c4a 100644 --- a/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/PlanModification.vue +++ b/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/PlanModification.vue @@ -781,10 +781,8 @@ const confirmDeleteBranch = async () => { return } - // 2. 从nodes中删除该分支的所有节点(排除根节点和主流程节点) - const branchNodeIds = branchToDelete.nodes - .filter(n => n.id !== 'root-goal' && !n.id.startsWith('task-')) - .map(n => n.id) + // 2. 从nodes中删除该分支的所有节点(排除根节点) + const branchNodeIds = branchToDelete.nodes.filter(n => n.id !== 'root-goal').map(n => n.id) nodes.value = nodes.value.filter(n => !branchNodeIds.includes(n.id)) @@ -836,9 +834,7 @@ const confirmDeleteNode = async () => { const allBranches = selectionStore.getAllFlowBranches() const childBranchIdMap: Record = {} outgoingEdges.forEach(outEdge => { - const childBranch = allBranches.find(branch => - branch.nodes.some(n => n.id === outEdge.target) - ) + const childBranch = allBranches.find(branch => branch.nodes.some(n => n.id === outEdge.target)) if (childBranch) { childBranchIdMap[outEdge.target] = childBranch.id } diff --git a/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/components/TaskNode.vue b/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/components/TaskNode.vue index 8a5e18e..25c1d22 100644 --- a/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/components/TaskNode.vue +++ b/frontend/src/layout/components/Main/TaskTemplate/TaskSyllabus/Branch/components/TaskNode.vue @@ -395,7 +395,7 @@ const isDeletable = computed(() => props.isDeletable || false) // 左侧位置 &.left { - left: -100px; + left: -50px; top: 50%; transform: translateY(-50%); }