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

This commit is contained in:
ChenZhaoYu 2023-03-23 16:22:06 +08:00
parent 5fca2e9fa3
commit 7a8dc393b5
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ const collapsed = computed(() => appStore.siderCollapsed)
function handleAdd() { function handleAdd() {
chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false }) chatStore.addHistory({ title: 'New Chat', uuid: Date.now(), isEdit: false })
if (isMobile.value)
appStore.setSiderCollapsed(true)
} }
function handleUpdateCollapsed() { function handleUpdateCollapsed() {