fix: 优化执行详情显示
This commit is contained in:
parent
1f88ee266d
commit
cbe044310e
@ -348,8 +348,23 @@
|
|||||||
v-for="(history, historyIndex) in item.history_message"
|
v-for="(history, historyIndex) in item.history_message"
|
||||||
:key="historyIndex"
|
:key="historyIndex"
|
||||||
>
|
>
|
||||||
<span class="color-secondary mr-4">{{ history.role }}:</span
|
<span class="color-secondary mr-4">{{ history.role }}:</span>
|
||||||
><span>{{ history.content }}</span>
|
|
||||||
|
<span v-if="Array.isArray(history.content)">
|
||||||
|
<template v-for="(h, i) in history.content" :key="i">
|
||||||
|
<el-image
|
||||||
|
v-if="h.type === 'image_url'"
|
||||||
|
:src="h.image_url.url"
|
||||||
|
alt=""
|
||||||
|
fit="cover"
|
||||||
|
style="width: 40px; height: 40px; display: block"
|
||||||
|
class="border-r-4"
|
||||||
|
/>
|
||||||
|
<span v-else>{{ h.text }}</span>
|
||||||
|
</template>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span v-else>{{ history.content }}</span>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<template v-else> - </template>
|
<template v-else> - </template>
|
||||||
@ -359,7 +374,7 @@
|
|||||||
<h5 class="p-8-12">本次对话</h5>
|
<h5 class="p-8-12">本次对话</h5>
|
||||||
<div class="p-8-12 border-t-dashed lighter pre-wrap">
|
<div class="p-8-12 border-t-dashed lighter pre-wrap">
|
||||||
<div v-if="item.image_list?.length > 0">
|
<div v-if="item.image_list?.length > 0">
|
||||||
<p class="mb-8 color-secondary">文件:</p>
|
<p class="mb-8 color-secondary">图片:</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<template v-for="(f, i) in item.image_list" :key="i">
|
<template v-for="(f, i) in item.image_list" :key="i">
|
||||||
<el-image
|
<el-image
|
||||||
@ -371,7 +386,6 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-space>
|
</el-space>
|
||||||
<p class="mb-8 color-secondary">提示词:</p>
|
|
||||||
{{ item.question || '-' }}
|
{{ item.question || '-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user