Skip to content

Commit

Permalink
fix: 移动端新建会话关闭侧边栏 (Chanzhaoyu#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu authored Mar 23, 2023
1 parent 5fca2e9 commit 73e12b1
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 73e12b1

Please sign in to comment.