bugfix: 创建对话不显示列表

This commit is contained in:
2026-03-03 09:59:19 +08:00
parent 41b9c81f95
commit 5959d5b0d7
3 changed files with 17 additions and 18 deletions

View File

@@ -361,18 +361,15 @@
}
const setChatInfo = (info) => {
// 先清空列表
const initialData = agentStore.getInitialProjectData
if (isGenerating.value || initialData) return
const data = info.conversation
let project = info.project
if (info.id) {
project = info
}
const initialData = agentStore.getInitialProjectData
if (initialData) {
return
}
messageList.value = []
params.versionID = ''
sketchList.value = []
if (project) {
@@ -382,7 +379,10 @@
params.configParams.temperature = project.temperature
}
// 如果没有数据,直接返回
if (!data) return
if (!data) {
messageList.value = []
return
}
const { ancestors, current } = data
const imgList = []

View File

@@ -56,7 +56,6 @@
const handleSelectNode = () => {
getNodeAncestors({ projectId: projectStore.state.id, id: projectStore.state.nodeId }).then(
(res) => {
console.log('res', res)
agentRef.value.setChatInfo(res)
}
)