flat:4.7暂存
This commit is contained in:
@@ -54,7 +54,7 @@ const useChatGroupDBStore = defineStore("messageGroup", () => {
|
||||
initMessage(tabelRow.sessionId)
|
||||
} else {
|
||||
console.warn('本地数据库存在数据')
|
||||
getHistory('refresh')
|
||||
// getHistory('refresh')
|
||||
}
|
||||
}, 1000)
|
||||
}
|
||||
@@ -148,6 +148,7 @@ const useChatGroupDBStore = defineStore("messageGroup", () => {
|
||||
if (typeof part === 'string') {
|
||||
newMsg.displayText += part;
|
||||
} else if (typeof part === 'object' && part.type === 'highlight') {
|
||||
consol.log('自定义样式')
|
||||
newMsg.displayText += `<span class="highlight">${part.content}</span>`;
|
||||
} else {
|
||||
newMsg.displayText += String(part); // 兜底
|
||||
@@ -180,7 +181,6 @@ const useChatGroupDBStore = defineStore("messageGroup", () => {
|
||||
}
|
||||
|
||||
function onError(error) {
|
||||
console.error('请求异常:', error);
|
||||
msg('服务响应异常');
|
||||
reject(error);
|
||||
}
|
||||
@@ -273,6 +273,9 @@ const useChatGroupDBStore = defineStore("messageGroup", () => {
|
||||
if (obj.type === 'file') {
|
||||
files.push(obj.file)
|
||||
}
|
||||
if (obj.type === 'tool') {
|
||||
console.log(obj)
|
||||
}
|
||||
}
|
||||
arr.push({
|
||||
parentGroupId: sessionId,
|
||||
|
Reference in New Issue
Block a user