Skip to content

fix: 修复工作流工具执行详情的节点顺序混乱的问题 - #6535

Open
wangliang181230 wants to merge 1 commit into
1Panel-dev:v2from
wangliang181230:PR/70-fix-tool-flow-sort
Open

fix: 修复工作流工具执行详情的节点顺序混乱的问题#6535
wangliang181230 wants to merge 1 commit into
1Panel-dev:v2from
wangliang181230:PR/70-fix-tool-flow-sort

Conversation

@wangliang181230

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?

Summary of your change

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

Copilot AI review requested due to automatic review settings July 29, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 旨在修复「工作流工具执行详情」中子节点展示顺序混乱的问题,通过在前端渲染时对 details 的节点集合按 index 字段排序,确保执行详情按预期顺序展示。

Changes:

  • data.details 由直接遍历改为 Object.values(...) 后再按 index 排序渲染子节点详情
  • 调整 ToolWorkflowLib 场景下的 ExecutionDetailCard 递归渲染方式(用于展示嵌套的执行详情)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1414 to 1422
<template
v-for="(cLoop, cIndex) in arraySort(
Object.values(data.details ?? {}) ?? [],
'index',
)"
:key="cIndex"
>
<ExecutionDetailCard :data="cLoop"></ExecutionDetailCard>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants