Skip to content

Commit

Permalink
perf: 移动端删除 chat 时,侧边栏应该收起
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu authored and jingChen55 committed Mar 27, 2023
1 parent 3bf7bf8 commit 90e6a57
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 90e6a57

Please sign in to comment.