diff --git a/src/components/business/Chat/index.vue b/src/components/business/Chat/index.vue index 0d194aa..0903a66 100644 --- a/src/components/business/Chat/index.vue +++ b/src/components/business/Chat/index.vue @@ -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) }