소스 검색

【优化】AI chat 默认选中对话,刷新增加加载中显示

cherishsince 1 년 전
부모
커밋
a96a2ec9ec
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/views/ai/chat/index.vue

+ 2 - 0
src/views/ai/chat/index.vue

@@ -481,9 +481,11 @@ onMounted(async () => {
   // 设置当前对话 TODO 角色仓库过来的,自带 conversationId 需要选中
   if (route.query.conversationId) {
     const id = route.query.conversationId as string
+    activeConversationId.value = id
     await getConversation(id)
   }
   // 获取列表数据
+  listLoading.value = true
   await getMessageList()
 })
 </script>