Explorar o código

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

cherishsince hai 1 ano
pai
achega
5c15b7f503
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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、默认选中