fix: 修复执行详情图片理解样式

This commit is contained in:
wangdan-fit2cloud 2024-12-05 11:21:27 +08:00
parent c16ca71a2b
commit a3e7fcb5c3

View File

@ -387,19 +387,18 @@
<span class="color-secondary mr-4">{{ history.role }}:</span> <span class="color-secondary mr-4">{{ history.role }}:</span>
<span v-if="Array.isArray(history.content)"> <span v-if="Array.isArray(history.content)">
<el-space wrap> <template v-for="(h, i) in history.content" :key="i">
<template v-for="(h, i) in history.content" :key="i"> <el-image
<el-image v-if="h.type === 'image_url'"
v-if="h.type === 'image_url'" :src="h.image_url.url"
:src="h.image_url.url" alt=""
alt="" fit="cover"
fit="cover" style="width: 40px; height: 40px; display: inline-block"
style="width: 40px; height: 40px; display: block" class="border-r-4 mr-8"
class="border-r-4" />
/>
<span v-else>{{ h.text }}</span> <span v-else>{{ h.text }}<br /></span>
</template> </template>
</el-space>
</span> </span>
<span v-else>{{ history.content }}</span> <span v-else>{{ history.content }}</span>