提交 ca1513f4 编写于 作者: D DebugIsFalse

fix: 重置标题

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