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

This commit is contained in:
wangdan-fit2cloud 2024-12-05 11:03:16 +08:00
parent cefd66dcb0
commit c16ca71a2b

View File

@ -387,17 +387,19 @@
<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)">
<template v-for="(h, i) in history.content" :key="i"> <el-space wrap>
<el-image <template v-for="(h, i) in history.content" :key="i">
v-if="h.type === 'image_url'" <el-image
:src="h.image_url.url" v-if="h.type === 'image_url'"
alt="" :src="h.image_url.url"
fit="cover" alt=""
style="width: 40px; height: 40px; display: block" fit="cover"
class="border-r-4" style="width: 40px; height: 40px; display: block"
/> class="border-r-4"
<span v-else>{{ h.text }}</span> />
</template> <span v-else>{{ h.text }}</span>
</template>
</el-space>
</span> </span>
<span v-else>{{ history.content }}</span> <span v-else>{{ history.content }}</span>