Skip to content

Commit

Permalink
fix: 修复执行详情图片理解样式
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Dec 5, 2024
1 parent c16ca71 commit a3e7fcb
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions ui/src/components/ai-chat/ExecutionDetailDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,19 +387,18 @@
<span class="color-secondary mr-4">{{ history.role }}:</span>

<span v-if="Array.isArray(history.content)">
<el-space wrap>
<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>
</el-space>
<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: inline-block"
class="border-r-4 mr-8"
/>

<span v-else>{{ h.text }}<br /></span>
</template>
</span>

<span v-else>{{ history.content }}</span>
Expand Down

0 comments on commit a3e7fcb

Please sign in to comment.