bugfix: 初始化创建会话列表时不显示会话
This commit is contained in:
@@ -363,14 +363,24 @@
|
||||
const setChatInfo = (info) => {
|
||||
// 先清空列表
|
||||
const data = info.conversation
|
||||
const project = info.project
|
||||
let project = info.project
|
||||
if (info.id) {
|
||||
project = info
|
||||
}
|
||||
const initialData = agentStore.getInitialProjectData
|
||||
|
||||
if (initialData) {
|
||||
return
|
||||
}
|
||||
messageList.value = []
|
||||
params.versionID = ''
|
||||
sketchList.value = []
|
||||
params.configParams.type = project.type
|
||||
params.configParams.region = project.area
|
||||
params.configParams.style = project.style
|
||||
params.configParams.temperature = project.temperature
|
||||
if (project) {
|
||||
params.configParams.type = project.type
|
||||
params.configParams.region = project.area
|
||||
params.configParams.style = project.style
|
||||
params.configParams.temperature = project.temperature
|
||||
}
|
||||
// 如果没有数据,直接返回
|
||||
if (!data) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user