提交 dfc24ee3 编写于 作者: D DebugIsFalse

Update [id].vue

上级 d76e627d
...@@ -172,7 +172,7 @@ async function handleUpdateQuery(query) { ...@@ -172,7 +172,7 @@ async function handleUpdateQuery(query) {
const params = { title: query, c_id: state.id } const params = { title: query, c_id: state.id }
const { error } = await useRequest(`/v1/chat/${state.id}/rename`, { method: 'post', body: { new_title: query } }) const { error } = await useRequest(`/v1/chat/${state.id}/rename`, { method: 'post', body: { new_title: query } })
if (error.value) { if (error.value) {
refHeader.value.editTitle.value = `${state.query}` // refHeader.value.editTitle = state.title
return return
} }
state.title = query state.title = query
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册