From 071283c007bd10a2d532b2c62188fa264db87a5c Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Mon, 13 Feb 2023 19:25:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=85=E9=99=A4=E4=B8=8A=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E6=8C=89=E9=92=AE=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/business/Chat/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) }