bugfix: 创建对话不显示列表
This commit is contained in:
@@ -37,7 +37,7 @@ export default {
|
||||
wechatLogin: '使用微信登录',
|
||||
indexTip: '一个多智能体画布,用于快速、趋势驱动的设计迭代。',
|
||||
sendCodeError: '发送验证码失败',
|
||||
retrievePassword: '找回密码',
|
||||
retrievePassword: '找回密码'
|
||||
},
|
||||
Nuic: {
|
||||
hiName: '你好,{name}。这是 Fiphant。',
|
||||
@@ -66,9 +66,9 @@ export default {
|
||||
Input: {
|
||||
placeholder: '请输入',
|
||||
selectPlaceholder: '请选择',
|
||||
type: '类型',
|
||||
area: '地区',
|
||||
style: '风格',
|
||||
typePlaceholder: '类型',
|
||||
areaPlaceholder: '地区',
|
||||
stylePlaceholder: '风格',
|
||||
types: {
|
||||
sofa: '沙发',
|
||||
desk: '书桌',
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
france: '法国',
|
||||
japan: '日本',
|
||||
canada: '加拿大',
|
||||
germany: '德国',
|
||||
germany: '德国'
|
||||
},
|
||||
agent: {
|
||||
copySuccess: '文本已复制到剪贴板',
|
||||
@@ -121,13 +121,13 @@ export default {
|
||||
restore: '恢复',
|
||||
newChat: '新建对话',
|
||||
delete: '删除',
|
||||
deleteChat:'删除对话?',
|
||||
deleteHint:'删除后将无法恢复该对话。',
|
||||
restoreChat:'恢复对话?',
|
||||
restoreHint:'恢复后将显示该对话。',
|
||||
deleteChat: '删除对话?',
|
||||
deleteHint: '删除后将无法恢复该对话。',
|
||||
restoreChat: '恢复对话?',
|
||||
restoreHint: '恢复后将显示该对话。',
|
||||
cancel: '取消',
|
||||
Confirm: '确认',
|
||||
export: '导出',
|
||||
export: '导出'
|
||||
},
|
||||
//generateSketch
|
||||
generateSketch: {
|
||||
|
||||
@@ -361,18 +361,15 @@
|
||||
}
|
||||
|
||||
const setChatInfo = (info) => {
|
||||
// 先清空列表
|
||||
const initialData = agentStore.getInitialProjectData
|
||||
if (isGenerating.value || initialData) return
|
||||
|
||||
const data = info.conversation
|
||||
let project = info.project
|
||||
if (info.id) {
|
||||
project = info
|
||||
}
|
||||
const initialData = agentStore.getInitialProjectData
|
||||
|
||||
if (initialData) {
|
||||
return
|
||||
}
|
||||
messageList.value = []
|
||||
params.versionID = ''
|
||||
sketchList.value = []
|
||||
if (project) {
|
||||
@@ -382,7 +379,10 @@
|
||||
params.configParams.temperature = project.temperature
|
||||
}
|
||||
// 如果没有数据,直接返回
|
||||
if (!data) return
|
||||
if (!data) {
|
||||
messageList.value = []
|
||||
return
|
||||
}
|
||||
|
||||
const { ancestors, current } = data
|
||||
const imgList = []
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
const handleSelectNode = () => {
|
||||
getNodeAncestors({ projectId: projectStore.state.id, id: projectStore.state.nodeId }).then(
|
||||
(res) => {
|
||||
console.log('res', res)
|
||||
agentRef.value.setChatInfo(res)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user