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