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