fix: 修复空格格式化换行问题

This commit is contained in:
yangzhe 2025-07-24 14:42:54 +08:00
parent 9eeb8eadac
commit a2ced17f63
1 changed files with 31 additions and 27 deletions

View File

@ -21,7 +21,7 @@
></image>
<text class="message-text"
>Hi~ 我是源小新你们的AI校园助手非常高兴认识您我可以为你答疑解惑</text
>Hi~&nbsp;我是源小新你们的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;
}