feat: 创建新对话后更新左侧列表
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user