瀏覽代碼

修复了生成文本时可以删除的bug

kagg886 2 月之前
父節點
當前提交
95b6529554
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/assistant/index.vue

+ 3 - 3
src/views/assistant/index.vue

@@ -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>