Skip to content

Commit

Permalink
Merge pull request #279 from sepcnt/patch-1
Browse files Browse the repository at this point in the history
Update List.vue
  • Loading branch information
Chanzhaoyu authored Mar 5, 2023
2 parents ffb6805 + d22f05f commit d5b9213
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 d5b9213

Please sign in to comment.