Skip to content

Commit

Permalink
fix: 清空上下文时不应该重置会话标题
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Mar 13, 2023
1 parent db502e1 commit efc9e81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/store/modules/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export const useChatStore = defineStore('chat-store', {
if (!uuid || uuid === 0) {
if (this.chat.length) {
this.chat[0].data = []
this.history[0].title = 'New Chat'
this.recordState()
}
return
Expand All @@ -174,7 +173,6 @@ export const useChatStore = defineStore('chat-store', {
const index = this.chat.findIndex(item => item.uuid === uuid)
if (index !== -1) {
this.chat[index].data = []
this.history[index].title = 'New Chat'
this.recordState()
}
},
Expand Down

0 comments on commit efc9e81

Please sign in to comment.