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