feat: 创建新对话后更新左侧列表

This commit is contained in:
2026-03-02 14:03:59 +08:00
parent 2b129800cf
commit 965d322aac
3 changed files with 8 additions and 7 deletions

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(),