Skip to content

Commit

Permalink
fix: 清除全部对话时删除当前界面
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiaa12 committed Oct 7, 2023
1 parent 9aa72fd commit 32063e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/components/chatGPT.vue
Expand Up @@ -76,7 +76,10 @@ provide("chats", chats)
const currentChat = ref<Chat>()
const currentModel = ref("gpt-3.5-turbo")
const delAll = () => (chats.value = [])
const delAll = () => {
chats.value = []
currentChat.value = undefined
}
const drawer = ref(!isMobile.value)
watch(isMobile, () => {
Expand Down

0 comments on commit 32063e5

Please sign in to comment.