Skip to content

Commit

Permalink
fix: 移动端新建会话关闭侧边栏 (Chanzhaoyu#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu authored and jingChen55 committed Mar 27, 2023
1 parent b5dcf6b commit 3bf7bf8
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 3bf7bf8

Please sign in to comment.