Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

fix: 移动端新建会话关闭侧边栏 #813

Merged
merged 1 commit into from
Mar 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/views/chat/layout/sider/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down