bugfix: 切换对话时先清空当前列表
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user