Skip to content

Commit 592d39d

Browse files
fix: 修复工作流工具执行详情的节点顺序混乱的问题
1 parent 74335e9 commit 592d39d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

  • ui/src/components/execution-detail-card

ui/src/components/execution-detail-card/index.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,9 @@
11331133
</el-radio-group>
11341134
<template
11351135
v-for="(cLoop, cIndex) in Object.values(
1136-
data.loop_node_data?.[currentLoopNode] || [],
1137-
).sort((x: any, y: any) => (x.index || 0) - (y.index || 0))"
1136+
data.loop_node_data?.[currentLoopNode] || []).sort(
1137+
(x: any, y: any) => (x.index || 0) - (y.index || 0)
1138+
)"
11381139
:key="cIndex"
11391140
>
11401141
<ExecutionDetailCard :data="cLoop" :type="type"></ExecutionDetailCard>
@@ -1411,7 +1412,13 @@
14111412
{{ $t('aiChat.executionDetails.title') }}
14121413
</h5>
14131414
<div class="p-8-12 border-t-dashed lighter">
1414-
<template v-for="(cLoop, cIndex) in data.details" :key="cIndex">
1415+
<template
1416+
v-for="(cLoop, cIndex) in Object.values(
1417+
data.details ?? {}).sort(
1418+
(a: any, b: any) => (a?.index ?? 0) - (b?.index ?? 0)
1419+
)"
1420+
:key="cLoop?.index ?? cIndex"
1421+
>
14151422
<ExecutionDetailCard :data="cLoop" :type="type"></ExecutionDetailCard>
14161423
</template>
14171424
</div>

0 commit comments

Comments
 (0)