diff --git a/src/store/modules/chat/index.ts b/src/store/modules/chat/index.ts
index 9db57d4..203e194 100644
--- a/src/store/modules/chat/index.ts
+++ b/src/store/modules/chat/index.ts
@@ -110,6 +110,22 @@ export const useChatStore = defineStore('chat-store', {
}
},
+ deleteChatByUuid(uuid: number, index: number) {
+ if (!uuid || uuid === 0) {
+ if (this.chat.length) {
+ this.chat[0].data.splice(index, 1)
+ this.recordState()
+ }
+ return
+ }
+
+ const chatIndex = this.chat.findIndex(item => item.uuid === uuid)
+ if (chatIndex !== -1) {
+ this.chat[chatIndex].data.splice(index, 1)
+ this.recordState()
+ }
+ },
+
clearChatByUuid(uuid: number) {
if (!uuid || uuid === 0) {
if (this.chat.length) {
diff --git a/src/views/chat/components/Message/Text.vue b/src/views/chat/components/Message/Text.vue
index 23a2ed8..abc881d 100644
--- a/src/views/chat/components/Message/Text.vue
+++ b/src/views/chat/components/Message/Text.vue
@@ -1,7 +1,9 @@
-
+
+
+