소스 검색

【解决todo】处理 AI 对话排序

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

+ 1 - 1
src/views/ai/chat/Conversation.vue

@@ -151,7 +151,7 @@ const getChatConversationList = async () => {
   const res = await ChatConversationApi.getChatConversationMyList()
   // 2、排序
   res.sort((a, b) => {
-    return b.updateTime - a.updateTime
+    return b.createTime - a.createTime
   })
   conversationList.value = res
   // 3、默认选中