mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 05:06:33 +08:00
fix: 修复无法将通知设为未读 (#511)
This commit is contained in:
parent
4292bd2118
commit
03adc83ba2
|
@ -104,7 +104,7 @@ const setReadStatus = (item: NotificationItem) => {
|
||||||
const changeMsg = msgData.value;
|
const changeMsg = msgData.value;
|
||||||
changeMsg.forEach((e: NotificationItem) => {
|
changeMsg.forEach((e: NotificationItem) => {
|
||||||
if (e.id === item.id) {
|
if (e.id === item.id) {
|
||||||
if (e.status) e.status = false;
|
e.status = !e.status;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
store.setMsgData(changeMsg);
|
store.setMsgData(changeMsg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user