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() {