fix: 修复无法将通知设为未读 (#511)

This commit is contained in:
You 2023-05-16 22:00:36 +08:00 committed by GitHub
parent 4292bd2118
commit 03adc83ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ const setReadStatus = (item: NotificationItem) => {
const changeMsg = msgData.value;
changeMsg.forEach((e: NotificationItem) => {
if (e.id === item.id) {
if (e.status) e.status = false;
e.status = !e.status;
}
});
store.setMsgData(changeMsg);