Skip to content

Commit

Permalink
fix: 无法删除单条消息 (Close #119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed May 8, 2023
1 parent 1d0c3c6 commit 15d9c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const useChatStore = defineStore('chat-store', {

const chatIndex = this.chat.findIndex(item => item.uuid === uuid)
if (chatIndex !== -1) {
fetchDeleteChat(uuid, this.chat[chatIndex].data[index].uuid || 0, this.chat[0].data[index].inversion)
fetchDeleteChat(uuid, this.chat[chatIndex].data[index].uuid || 0, this.chat[chatIndex].data[index].inversion)
this.chat[chatIndex].data.splice(index, 1)
this.recordState()
}
Expand Down

0 comments on commit 15d9c1c

Please sign in to comment.