Update List.vue
This commit is contained in:
parent
9dd3655b81
commit
002a57704f
|
@ -15,7 +15,9 @@ const dataSources = computed(() => chatStore.history)
|
||||||
async function handleSelect({ uuid }: Chat.History) {
|
async function handleSelect({ uuid }: Chat.History) {
|
||||||
if (isActive(uuid))
|
if (isActive(uuid))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if(chatStore.active)
|
||||||
|
chatStore.updateHistory(chatStore.active, { isEdit: false })
|
||||||
await chatStore.setActive(uuid)
|
await chatStore.setActive(uuid)
|
||||||
|
|
||||||
if (isMobile.value)
|
if (isMobile.value)
|
||||||
|
|
Loading…
Reference in New Issue