From 9a16b2b34d688561ec69cabf0174e6b3a0698c01 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 27 Jul 2025 20:07:22 +0800 Subject: [PATCH] =?UTF-8?q?reactor=EF=BC=9A=E3=80=90AI=20=E5=A4=A7?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E3=80=91chat/role=20=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E6=88=90=20unocss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../conversation/ConversationList.vue | 16 +-- .../chat/index/components/role/RoleList.vue | 114 ++++-------------- .../index/components/role/RoleRepository.vue | 93 ++++---------- 3 files changed, 53 insertions(+), 170 deletions(-) diff --git a/src/views/ai/chat/index/components/conversation/ConversationList.vue b/src/views/ai/chat/index/components/conversation/ConversationList.vue index 73a4d2a27..305ae3787 100644 --- a/src/views/ai/chat/index/components/conversation/ConversationList.vue +++ b/src/views/ai/chat/index/components/conversation/ConversationList.vue @@ -31,7 +31,9 @@ class="conversation-item classify-title" v-if="conversationMap[conversationKey].length" > - {{ conversationKey }} + + {{ conversationKey }} +
{ // 排序、指定、时间分组(今天、一天前、三天前、七天前、30天前) // noinspection NonAsciiCharacters const groupMap = { - 置顶: [], - 今天: [], - 一天前: [], - 三天前: [], - 七天前: [], - 三十天前: [] + 置顶: [] as ChatConversationVO[], + 今天: [] as ChatConversationVO[], + 一天前: [] as ChatConversationVO[], + 三天前: [] as ChatConversationVO[], + 七天前: [] as ChatConversationVO[], + 三十天前: [] as ChatConversationVO[] } // 当前时间的时间戳 const now = Date.now() diff --git a/src/views/ai/chat/index/components/role/RoleList.vue b/src/views/ai/chat/index/components/role/RoleList.vue index 2c270bfda..0dd14a0f0 100644 --- a/src/views/ai/chat/index/components/role/RoleList.vue +++ b/src/views/ai/chat/index/components/role/RoleList.vue @@ -1,9 +1,16 @@