Browse Source

多选删除后不刷新

kagg886 1 tháng trước cách đây
mục cha
commit
2ee48d32bd
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/assistant/index.vue

+ 2 - 1
src/views/assistant/index.vue

@@ -701,7 +701,8 @@ const startMultidelete = async () => {
 	ElMessage.success('删除成功')
 
 	await nextTick()
-	await doLoadConversations()
+	// await doLoadConversations()
+	conversations.value = conversations.value.filter((item) => item.session_id !== id)
 }
 
 // 创建新对话