Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/FiDA_Front
This commit is contained in:
@@ -55,10 +55,9 @@
|
||||
token: userStore.state.token,
|
||||
versionID: '',
|
||||
configParams: {
|
||||
type: 'Chair',
|
||||
region: 'China',
|
||||
style: 'Transitional',
|
||||
temperature: 0.7
|
||||
type: '',
|
||||
region: '',
|
||||
style: ''
|
||||
},
|
||||
imageUrlList: []
|
||||
})
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user