diff --git a/src/views/ai/chat/index/components/conversation/ConversationList.vue b/src/views/ai/chat/index/components/conversation/ConversationList.vue index 305ae378..8404bb51 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 3fe2f281..fdc46661 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() }) - -