Skip to content

Commit 73e12b1

Browse files
authored
fix: 移动端新建会话关闭侧边栏 (#813)
1 parent 5fca2e9 commit 73e12b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/chat/layout/sider/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const collapsed = computed(() => appStore.siderCollapsed)
1818
1919
function handleAdd() {
2020
chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false })
21+
if (isMobile.value)
22+
appStore.setSiderCollapsed(true)
2123
}
2224
2325
function handleUpdateCollapsed() {

0 commit comments

Comments
 (0)