bugfix: restore设置versionId
This commit is contained in:
@@ -221,7 +221,6 @@
|
||||
}
|
||||
|
||||
buffer += decoder.decode(value, { stream: true })
|
||||
console.log('收到chunk',new Date().getTime());
|
||||
|
||||
// 优先按空行拆分事件块(SSE标准)
|
||||
let events = buffer.split(/\n\n/)
|
||||
@@ -470,9 +469,11 @@
|
||||
|
||||
// 延迟设置新数据,确保 UI 有时间响应清空操作
|
||||
nextTick(() => {
|
||||
|
||||
messageList.value = [...ancestorsList, ...currentList]
|
||||
params.versionID = current?.id
|
||||
sketchList.value = imgList
|
||||
console.log('11111111111111',params.versionID);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="message-context loading" v-show="content.loading">
|
||||
<!-- <img src="@/assets/images/generate-loading.gif" alt="loading" class="loading-gif" /> -->
|
||||
<video
|
||||
src="@/assets/images/generate-loading.mp4"
|
||||
autoplay
|
||||
@@ -195,9 +194,7 @@
|
||||
font-size: 1.4rem;
|
||||
.message-wrapper {
|
||||
column-gap: 0.9rem;
|
||||
// align-items: flex-start;
|
||||
&.is-user {
|
||||
// text-align: right;
|
||||
flex-direction: row-reverse;
|
||||
column-gap: 1.3rem;
|
||||
}
|
||||
@@ -228,9 +225,6 @@
|
||||
.operate {
|
||||
margin-top: 1.3rem;
|
||||
column-gap: 1.2rem;
|
||||
// &.is-user {
|
||||
// justify-content: flex-end;
|
||||
// }
|
||||
}
|
||||
}
|
||||
.img-list {
|
||||
@@ -246,7 +240,6 @@
|
||||
}
|
||||
|
||||
.loading-gif {
|
||||
// width: 18.7rem;
|
||||
height: 10rem;
|
||||
position: relative;
|
||||
margin-left: -2.4rem;
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
// agentRef.value?.inputRef?.addReportTag('Restore')
|
||||
clearNodeChat({ projectId: projectStore.state.id, id: projectStore.state.nodeId }).then(
|
||||
(res) => {
|
||||
agentRef.value.setChatInfo(res)
|
||||
agentRef.value.setChatInfo({ conversation: res, project: {} })
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user