chore: 处理前端undefined的问题
This commit is contained in:
parent
832d2a2e7f
commit
4dd497ea26
@ -30,7 +30,7 @@ const props = defineProps<{
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (props.chatRecord.execution_details?.length > 0) {
|
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)
|
console.log('image', image.name, image.url)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user