|
@@ -381,9 +381,8 @@ const { loading: loadingDeleteConversation, doLoading: deleteConversation } = us
|
|
|
return
|
|
|
}
|
|
|
ElMessage.success('删除成功')
|
|
|
- if (id === undefined) {
|
|
|
- activeConversationId.value = undefined
|
|
|
- }
|
|
|
+ activeConversationId.value = undefined
|
|
|
+ messages.value = []
|
|
|
await nextTick()
|
|
|
await doLoadConversations()
|
|
|
})
|
|
@@ -523,6 +522,7 @@ const redirectToModelManager = () => router.push('manage/model')
|
|
|
title="删除对话"
|
|
|
plain
|
|
|
circle
|
|
|
+ :disabled="isConversationActive"
|
|
|
/>
|
|
|
</template>
|
|
|
|