chore: 处理前端undefined的问题
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
CaptainB 2024-11-15 14:33:47 +08:00
parent 832d2a2e7f
commit 4dd497ea26

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)
})
}