mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
chore: 处理前端undefined的问题
This commit is contained in:
parent
832d2a2e7f
commit
4dd497ea26
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue