Browse Source

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

cherishsince 1 năm trước cách đây
mục cha
commit
5c15b7f503
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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、默认选中