diff --git a/src/views/chat/layout/sider/index.vue b/src/views/chat/layout/sider/index.vue index 524d3c0b77..2792301da0 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() {