From 0e41d29a4905ba29fc4a677d02a159e35ef73f95 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 09 十月 2024 17:19:37 +0800 Subject: [PATCH] ?. --- src/components/chat/Chat.vue | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 010fb3f..943c8cd 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -426,7 +426,7 @@ sectionAIdMap.set(item.history_id, item.section_a_id); getAnswerById(item.history_id).then((aiRobot) => { // 鐢ㄦ埛鎻愰棶绱㈠紩 - const userMsgIndex = messageList.value.findIndex((subItem) => subItem.historyId === item.history_id); + const userMsgIndex = messageList.value.findIndex((subItem) => subItem?.historyId === item.history_id); const userMsg = messageList.value[userMsgIndex]; // values 鍙栧洖绛斾箣鍚庢渶缁堢殑 question userMsg.content.values = aiRobot.answer?.question ?? userMsg.content.values; -- Gitblit v1.9.3