Skip to content

Commit 15d9c1c

Browse files
author
Kerwin
committed
fix: 无法删除单条消息 (Close #119)
1 parent 1d0c3c6 commit 15d9c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/modules/chat/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export const useChatStore = defineStore('chat-store', {
240240

241241
const chatIndex = this.chat.findIndex(item => item.uuid === uuid)
242242
if (chatIndex !== -1) {
243-
fetchDeleteChat(uuid, this.chat[chatIndex].data[index].uuid || 0, this.chat[0].data[index].inversion)
243+
fetchDeleteChat(uuid, this.chat[chatIndex].data[index].uuid || 0, this.chat[chatIndex].data[index].inversion)
244244
this.chat[chatIndex].data.splice(index, 1)
245245
this.recordState()
246246
}

0 commit comments

Comments
 (0)