Skip to content

Commit 4dd497e

Browse files
committed
chore: 处理前端undefined的问题
1 parent 832d2a2 commit 4dd497e

File tree

1 file changed

+1
-1
lines changed
  • ui/src/components/ai-chat/component/question-content

1 file changed

+1
-1
lines changed

ui/src/components/ai-chat/component/question-content/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const props = defineProps<{
3030
3131
onMounted(() => {
3232
if (props.chatRecord.execution_details?.length > 0) {
33-
props.chatRecord.execution_details[0].image_list.forEach((image: any) => {
33+
props.chatRecord.execution_details[0].image_list?.forEach((image: any) => {
3434
console.log('image', image.name, image.url)
3535
})
3636
}

0 commit comments

Comments
 (0)