From d8daf6f3d4fc98909d1d5c33a3a302df49f3b09b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 28 Jul 2025 12:27:07 +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/message=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 | 129 ++++--------- src/views/ai/chat/index/index.vue | 174 ++---------------- 2 files changed, 49 insertions(+), 254 deletions(-) diff --git a/src/views/ai/chat/index/components/conversation/ConversationList.vue b/src/views/ai/chat/index/components/conversation/ConversationList.vue index 305ae3787..8404bb51a 100644 --- a/src/views/ai/chat/index/components/conversation/ConversationList.vue +++ b/src/views/ai/chat/index/components/conversation/ConversationList.vue @@ -3,7 +3,7 @@
- + 新建对话 @@ -12,7 +12,7 @@ @@ -27,16 +27,13 @@
-
+
{{ conversationKey }}
-
- +
+ {{ conversation.title }}
-
- +
+ - + - + @@ -77,14 +81,29 @@
-
-
+
+
- 角色仓库 + 角色仓库
-
+
- 清空未置顶对话 + 清空未置顶对话
@@ -361,26 +380,10 @@ onMounted(async () => { padding: 10px 10px 0; overflow: hidden; - .btn-new-conversation { - padding: 18px 0; - } - - .search-input { - margin-top: 20px; - } - .conversation-list { overflow: auto; height: 100%; - .classify-title { - padding-top: 10px; - } - - .conversation-item { - margin-top: 5px; - } - .conversation { display: flex; flex-direction: row; @@ -401,12 +404,6 @@ onMounted(async () => { } } - .title-wrapper { - display: flex; - flex-direction: row; - align-items: center; - } - .title { padding: 2px 10px; max-width: 220px; @@ -417,58 +414,6 @@ onMounted(async () => { white-space: nowrap; text-overflow: ellipsis; } - - .avatar { - width: 25px; - height: 25px; - border-radius: 5px; - display: flex; - flex-direction: row; - justify-items: center; - } - - // 对话编辑、删除 - .button-wrapper { - right: 2px; - display: flex; - flex-direction: row; - justify-items: center; - color: var(--el-text-color-regular); - - .btn { - margin: 0; - } - } - } - } - - // 角色仓库、清空未设置对话 - .tool-box { - position: absolute; - bottom: 0; - left: 0; - right: 0; - //width: 100%; - padding: 0 20px; - background-color: var(--el-fill-color-extra-light); - box-shadow: 0 0 1px 1px var(--el-border-color-lighter); - line-height: 35px; - display: flex; - justify-content: space-between; - align-items: center; - color: var(--el-text-color); - - > div { - display: flex; - align-items: center; - color: var(--el-text-color-regular); - padding: 0; - margin: 0; - cursor: pointer; - - > span { - margin-left: 5px; - } } } } diff --git a/src/views/ai/chat/index/index.vue b/src/views/ai/chat/index/index.vue index 3fe2f2816..fdc466617 100644 --- a/src/views/ai/chat/index/index.vue +++ b/src/views/ai/chat/index/index.vue @@ -10,36 +10,38 @@ @on-conversation-delete="handlerConversationDelete" /> - - -
+ + +
{{ activeConversation?.title ? activeConversation?.title : '对话' }} ({{ activeMessageList.length }})
-
+
- + - + - +
- +
-
+
@@ -68,6 +70,7 @@ +
{ await getMessageList() }) - -