chore: 处理前端undefined的问题

v3.2
CaptainB 2024-11-15 14:33:47 +08:00
parent 832d2a2e7f
commit 4dd497ea26
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const props = defineProps<{
onMounted(() => {
if (props.chatRecord.execution_details?.length > 0) {
props.chatRecord.execution_details[0].image_list.forEach((image: any) => {
props.chatRecord.execution_details[0].image_list?.forEach((image: any) => {
console.log('image', image.name, image.url)
})
}