浏览代码

【解决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、默认选中