fix: 修复空格格式化换行问题
This commit is contained in:
parent
9eeb8eadac
commit
a2ced17f63
|
@ -21,7 +21,7 @@
|
|||
></image>
|
||||
|
||||
<text class="message-text"
|
||||
>Hi~ 我是源小新,你们的AI校园助手,非常高兴认识您,我可以为你答疑解惑。</text
|
||||
>Hi~ 我是源小新,你们的AI校园助手,非常高兴认识您,我可以为你答疑解惑。</text
|
||||
>
|
||||
</view>
|
||||
|
||||
|
@ -514,7 +514,7 @@ export default {
|
|||
messageType: 0,
|
||||
timeLabel: 0,
|
||||
displayTime: "",
|
||||
isLoading: true // 标记为加载状态
|
||||
isLoading: true, // 标记为加载状态
|
||||
};
|
||||
|
||||
// 添加加载状态消息到列表
|
||||
|
@ -532,7 +532,9 @@ export default {
|
|||
this.currentConversationId = data.conversationId;
|
||||
|
||||
// 从消息列表中移除加载状态消息
|
||||
this.messageGroups = this.messageGroups.filter(msg => !msg.isLoading);
|
||||
this.messageGroups = this.messageGroups.filter(
|
||||
(msg) => !msg.isLoading
|
||||
);
|
||||
|
||||
// 创建AI回复消息对象
|
||||
const aiMessage = {
|
||||
|
@ -556,7 +558,9 @@ export default {
|
|||
console.error("API请求失败:", error);
|
||||
|
||||
// 从消息列表中移除加载状态消息
|
||||
this.messageGroups = this.messageGroups.filter(msg => !msg.isLoading);
|
||||
this.messageGroups = this.messageGroups.filter(
|
||||
(msg) => !msg.isLoading
|
||||
);
|
||||
|
||||
// 添加错误消息
|
||||
const errorMessage = {
|
||||
|
@ -711,7 +715,7 @@ export default {
|
|||
this.$refs.uToast.show({
|
||||
title: "已经到顶了",
|
||||
type: "warning",
|
||||
duration: 1500
|
||||
duration: 1500,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue