feat: 兼容老的长文本

This commit is contained in:
2026-06-05 15:01:15 +08:00
parent be175591cc
commit 9d7a75a307
3 changed files with 55 additions and 36 deletions

View File

@@ -74,15 +74,16 @@
"
>
<AnswerComponent
v-if="isLongTextCard(item.componentName)"
v-if="isLongTextCard(item.componentName) && (item.componentName === CompName.longTextCard)"
:content="item.componentMsg || ''"
:longTextData="item.longTextData"
:finish="item.finish"
/>
<!-- <LongTextGuideCardPreview
<LongTextGuideCardPreview
v-if="isLongTextCard(item.componentName) && (item.componentName !== CompName.longTextCard)"
:componentName="item.componentName"
/> -->
/>
<QuickBookingComponent
v-if="
@@ -798,6 +799,7 @@ const handleWebSocketMessage = (data) => {
messageId: currentSessionMessageId,
replyMessageId: data.replyMessageId || "",
componentName: "",
componentMsg: "",
longTextData: null,
finish: false,
};
@@ -820,6 +822,7 @@ const handleWebSocketMessage = (data) => {
messageId: currentSessionMessageId,
replyMessageId: data.replyMessageId || "",
componentName: "",
componentMsg: "",
longTextData: null,
finish: false,
};
@@ -1213,6 +1216,7 @@ const sendChat = async (message, isInstruct = false) => {
messageId: currentSessionMessageId,
replyMessageId: "",
componentName: "",
componentMsg: "",
longTextData: null,
finish: false,
};