Skip to content

Commit 9081b22

Browse files
committed
perf: 移动端删除 chat 时,侧边栏应该收起
1 parent 73e12b1 commit 9081b22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ function handleEdit({ uuid }: Chat.History, isEdit: boolean, event?: MouseEvent)
3232
function handleDelete(index: number, event?: MouseEvent | TouchEvent) {
3333
event?.stopPropagation()
3434
chatStore.deleteHistory(index)
35+
if (isMobile.value)
36+
appStore.setSiderCollapsed(true)
3537
}
3638
3739
function handleEnter({ uuid }: Chat.History, isEdit: boolean, event: KeyboardEvent) {

0 commit comments

Comments
 (0)