bugfix: restore设置versionId

This commit is contained in:
2026-03-05 15:33:58 +08:00
parent 5d1474c173
commit b13f7587c8
3 changed files with 3 additions and 9 deletions

View File

@@ -221,7 +221,6 @@
} }
buffer += decoder.decode(value, { stream: true }) buffer += decoder.decode(value, { stream: true })
console.log('收到chunk',new Date().getTime());
// 优先按空行拆分事件块SSE标准 // 优先按空行拆分事件块SSE标准
let events = buffer.split(/\n\n/) let events = buffer.split(/\n\n/)
@@ -470,9 +469,11 @@
// 延迟设置新数据,确保 UI 有时间响应清空操作 // 延迟设置新数据,确保 UI 有时间响应清空操作
nextTick(() => { nextTick(() => {
messageList.value = [...ancestorsList, ...currentList] messageList.value = [...ancestorsList, ...currentList]
params.versionID = current?.id params.versionID = current?.id
sketchList.value = imgList sketchList.value = imgList
console.log('11111111111111',params.versionID);
}) })
} }

View File

@@ -40,7 +40,6 @@
</div> </div>
</div> </div>
<div class="message-context loading" v-show="content.loading"> <div class="message-context loading" v-show="content.loading">
<!-- <img src="@/assets/images/generate-loading.gif" alt="loading" class="loading-gif" /> -->
<video <video
src="@/assets/images/generate-loading.mp4" src="@/assets/images/generate-loading.mp4"
autoplay autoplay
@@ -195,9 +194,7 @@
font-size: 1.4rem; font-size: 1.4rem;
.message-wrapper { .message-wrapper {
column-gap: 0.9rem; column-gap: 0.9rem;
// align-items: flex-start;
&.is-user { &.is-user {
// text-align: right;
flex-direction: row-reverse; flex-direction: row-reverse;
column-gap: 1.3rem; column-gap: 1.3rem;
} }
@@ -228,9 +225,6 @@
.operate { .operate {
margin-top: 1.3rem; margin-top: 1.3rem;
column-gap: 1.2rem; column-gap: 1.2rem;
// &.is-user {
// justify-content: flex-end;
// }
} }
} }
.img-list { .img-list {
@@ -246,7 +240,6 @@
} }
.loading-gif { .loading-gif {
// width: 18.7rem;
height: 10rem; height: 10rem;
position: relative; position: relative;
margin-left: -2.4rem; margin-left: -2.4rem;

View File

@@ -49,7 +49,7 @@
// agentRef.value?.inputRef?.addReportTag('Restore') // agentRef.value?.inputRef?.addReportTag('Restore')
clearNodeChat({ projectId: projectStore.state.id, id: projectStore.state.nodeId }).then( clearNodeChat({ projectId: projectStore.state.id, id: projectStore.state.nodeId }).then(
(res) => { (res) => {
agentRef.value.setChatInfo(res) agentRef.value.setChatInfo({ conversation: res, project: {} })
} }
) )
} }