feat: 处理数据

This commit is contained in:
2026-05-21 16:35:37 +08:00
parent a2c814481c
commit e605d68d59
2 changed files with 2 additions and 1 deletions

View File

@@ -943,6 +943,7 @@ const handleWebSocketMessage = (data) => {
resetMessageState();
nextTick(() => scrollToBottom());
console.log("消息接收完成:", JSON.stringify(chatMsgList.value[aiMsgIndex]));
}
};

View File

@@ -58,7 +58,7 @@ const props = defineProps({
const tag = computed(() => getLongTextValue(props.longTextData, "tag"));
const title = computed(() => getLongTextValue(props.longTextData, "title"));
const previewContent = computed(() => {
return getLongTextPreviewText(props.longTextData) || (props.content ? String(props.content) : "");
return getLongTextPreviewText(props.longTextData, ["content"]) || (props.content ? String(props.content) : "");
});
// 处理文本内容:按行截断以保证预览最多显示三行(更贴近视觉行数)