flat:4.7暂存

This commit is contained in:
史典卓
2025-04-07 09:10:55 +08:00
parent 2992cb200e
commit b98e1d5405
186 changed files with 1090 additions and 631 deletions

View File

@@ -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,