Skip to content

Commit efc9e81

Browse files
committed
fix: 清空上下文时不应该重置会话标题
1 parent db502e1 commit efc9e81

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/store/modules/chat/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ export const useChatStore = defineStore('chat-store', {
165165
if (!uuid || uuid === 0) {
166166
if (this.chat.length) {
167167
this.chat[0].data = []
168-
this.history[0].title = 'New Chat'
169168
this.recordState()
170169
}
171170
return
@@ -174,7 +173,6 @@ export const useChatStore = defineStore('chat-store', {
174173
const index = this.chat.findIndex(item => item.uuid === uuid)
175174
if (index !== -1) {
176175
this.chat[index].data = []
177-
this.history[index].title = 'New Chat'
178176
this.recordState()
179177
}
180178
},

0 commit comments

Comments
 (0)