panhui 2 years ago
parent
commit
7b68d1039a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/store/modules/chat/index.ts

+ 1 - 1
src/store/modules/chat/index.ts

@@ -92,7 +92,7 @@ export const useChatStore = defineStore('chat-store', {
             if (!uuid || uuid === 0) {
             if (!uuid || uuid === 0) {
                 if (this.history.length === 0) {
                 if (this.history.length === 0) {
                     const uuid = Date.now()
                     const uuid = Date.now()
-                    this.history.push({ uuid, title: chat.text, isEdit: false })
+                    this.history.push({ uuid, title: chat.text, isEdit: false, maskId: null })
                     this.chat.push({ uuid, data: [chat] })
                     this.chat.push({ uuid, data: [chat] })
                     this.active = uuid
                     this.active = uuid
                     this.recordState()
                     this.recordState()