From 73e12b1fdd0e23a6b59a0d6c6dc397a34c166b44 Mon Sep 17 00:00:00 2001 From: Redon <790348264@qq.com> Date: Thu, 23 Mar 2023 16:23:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E4=BC=9A=E8=AF=9D=E5=85=B3=E9=97=AD=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=20(#813)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/layout/sider/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/chat/layout/sider/index.vue b/src/views/chat/layout/sider/index.vue index 524d3c0..2792301 100644 --- a/src/views/chat/layout/sider/index.vue +++ b/src/views/chat/layout/sider/index.vue @@ -18,6 +18,8 @@ const collapsed = computed(() => appStore.siderCollapsed) function handleAdd() { chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false }) + if (isMobile.value) + appStore.setSiderCollapsed(true) } function handleUpdateCollapsed() {