feat: 会话标题

This commit is contained in:
2026-03-06 11:51:11 +08:00
parent 86512fb820
commit c52f825ee6

View File

@@ -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
})