Skip to content

Commit

Permalink
Update List.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepcnt authored Mar 4, 2023
1 parent fd5f38c commit d22f05f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/chat/layout/sider/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const dataSources = computed(() => chatStore.history)
async function handleSelect({ uuid }: Chat.History) {
if (isActive(uuid))
return
if(chatStore.active)
chatStore.updateHistory(chatStore.active, { isEdit: false })
await chatStore.setActive(uuid)
if (isMobile.value)
Expand Down

0 comments on commit d22f05f

Please sign in to comment.