bugfix: 切换对话时先清空当前列表

This commit is contained in:
2026-03-02 16:40:40 +08:00
parent 4063dfb106
commit 1669ac78a9
3 changed files with 35 additions and 20 deletions

View File

@@ -54,7 +54,6 @@
)
}
const handleSelectNode = () => {
console.log('handleSelectNode')
getNodeAncestors({ projectId: projectStore.state.id, id: projectStore.state.nodeId }).then(
(res) => {
console.log('res', res)
@@ -65,7 +64,7 @@
const handleGetProjectInfoAndHistory = () => {
getProjectInfo({ id: route.params.id }).then((res) => {
if (res?.conversation) agentRef.value.setChatInfo(res.conversation)
if (res) agentRef.value.setChatInfo(res)
let data = res?.project || res
if (data?.latestNodeId) data.nodeId = data.latestNodeId
projectStore.setProject({