mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-21 11:57:47 +00:00
fix: 清除上下文按钮失效的问题
This commit is contained in:
@@ -31,11 +31,12 @@ function initChat() {
|
||||
|
||||
async function handleClear() {
|
||||
try {
|
||||
const { message } = await clearConversations()
|
||||
ms.success(message ?? 'Success')
|
||||
await clearConversations()
|
||||
}
|
||||
catch (error) {
|
||||
ms.error('Clear failed, please try again later.')
|
||||
}
|
||||
finally {
|
||||
list.value = []
|
||||
setTimeout(initChat, 100)
|
||||
}
|
||||
|
Reference in New Issue
Block a user