Skip to content

Commit

Permalink
perf: 移动端删除 chat 时,侧边栏应该收起
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Mar 23, 2023
1 parent 73e12b1 commit 9081b22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/chat/layout/sider/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ function handleEdit({ uuid }: Chat.History, isEdit: boolean, event?: MouseEvent)
function handleDelete(index: number, event?: MouseEvent | TouchEvent) {
event?.stopPropagation()
chatStore.deleteHistory(index)
if (isMobile.value)
appStore.setSiderCollapsed(true)
}
function handleEnter({ uuid }: Chat.History, isEdit: boolean, event: KeyboardEvent) {
Expand Down

0 comments on commit 9081b22

Please sign in to comment.