From 9081b22ce9768ff459216e07954998e00f174868 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Thu, 23 Mar 2023 16:56:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=88=A0?= =?UTF-8?q?=E9=99=A4=20chat=20=E6=97=B6=EF=BC=8C=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E5=BA=94=E8=AF=A5=E6=94=B6=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/layout/sider/List.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/chat/layout/sider/List.vue b/src/views/chat/layout/sider/List.vue index 2a282e0..0f5ddae 100644 --- a/src/views/chat/layout/sider/List.vue +++ b/src/views/chat/layout/sider/List.vue @@ -32,6 +32,8 @@ function handleEdit({ uuid }: Chat.History, isEdit: boolean, event?: MouseEvent) function handleDelete(index: number, event?: MouseEvent | TouchEvent) { event?.stopPropagation() chatStore.deleteHistory(index) + if (isMobile.value) + appStore.setSiderCollapsed(true) } function handleEnter({ uuid }: Chat.History, isEdit: boolean, event: KeyboardEvent) {