Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/FiDA_Front

This commit is contained in:
X1627315083@163.com
2026-03-02 14:09:51 +08:00
3 changed files with 8 additions and 7 deletions

View File

@@ -55,10 +55,9 @@
token: userStore.state.token,
versionID: '',
configParams: {
type: 'Chair',
region: 'China',
style: 'Transitional',
temperature: 0.7
type: '',
region: '',
style: ''
},
imageUrlList: []
})

View File

@@ -189,6 +189,7 @@
import { createProject } from '@/api/agent'
import { getStyleImage } from './style'
import { uploadImage } from '@/api/upload'
import MyEvent from '@/utils/myEvent'
// import Tag from './Tag.vue'
const router = useRouter()
@@ -424,8 +425,6 @@
const handleKeyDown = (e) => {
// 检测回车
if (e.key === 'Enter') {
console.log('11111111111')
e.preventDefault()
if (props.isAgentMode) {
handleSendAgent()
@@ -569,6 +568,7 @@
const projectres = await createProject(params)
// console.log('projectres', projectres)
projectStore.setId(projectres)
MyEvent.emit('updateProjectList')
// 保存初始数据到 store
agentStore.setInitialProjectData({
text: inputValue.value.trim(),

View File

@@ -60,6 +60,7 @@
import { useI18n } from 'vue-i18n'
import { getProjectList } from '@/api/agent'
import { FormatDate } from '@/utils/tools'
import MyEvent from '@/utils/myEvent'
const { t: $t } = useI18n()
const route = useRoute()
const router = useRouter()
@@ -154,7 +155,8 @@
earlierChatList.value.push(obj)
}
})
}
}
MyEvent.add('updateProjectList', GetProjectList)
GetProjectList()
</script>