From c813f007bfe76f796f889115e29a11169be7d463 Mon Sep 17 00:00:00 2001 From: ihzero Date: Wed, 23 Aug 2023 17:59:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/chat.js | 2 +- src/views/chat/components/group-item.vue | 4 +-- src/views/chat/index.vue | 1 + .../communication/components/contacts.vue | 25 +++++++++++-------- src/views/training/index.vue | 2 +- src/views/vip/components/item.vue | 12 ++++----- 6 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/stores/chat.js b/src/stores/chat.js index 7324970..56b923a 100644 --- a/src/stores/chat.js +++ b/src/stores/chat.js @@ -58,7 +58,7 @@ export const useChat = defineStore("chat-store", { if (!uuid) { console.log(chat); const uuid = uuidv4() - this.history.unshift({ id: uuid, title: chat.text }) + this.history.unshift({ id: uuid, title: chat.text.substring(0, 20) }) this.chat.push({ id: uuid, messages: [{ [chat.id]: chat }] }) this.active = uuid } diff --git a/src/views/chat/components/group-item.vue b/src/views/chat/components/group-item.vue index 8b75bd5..ab7f3d2 100644 --- a/src/views/chat/components/group-item.vue +++ b/src/views/chat/components/group-item.vue @@ -1,5 +1,5 @@