feat: 会话标题
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
const route = useRoute()
|
||||
const projectStore = useProjectStore()
|
||||
|
||||
const agentTitle = ref('Retro Sofa Sketch')
|
||||
const agentTitle = ref('Conversation')
|
||||
const previewType = ref<'sketch' | 'report'>('sketch')
|
||||
const VersionTreeIndexRef = ref()
|
||||
const agentRef = ref()
|
||||
@@ -66,6 +66,9 @@
|
||||
if (res) agentRef.value.setChatInfo(res)
|
||||
let data = res?.project || res
|
||||
if (data?.latestNodeId) data.nodeId = data.latestNodeId
|
||||
if (data) {
|
||||
agentTitle.value = data.name
|
||||
}
|
||||
projectStore.setProject({
|
||||
...data
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user