|
@@ -133,16 +133,18 @@ export default {
|
|
|
},
|
|
|
// 更新消息状态:已读、未读
|
|
|
changeMessageState(val) {
|
|
|
- val.Read = true;
|
|
|
- let params = {
|
|
|
- Content: [{
|
|
|
- Id: val.Id,
|
|
|
- Read: true
|
|
|
- }]
|
|
|
+ if(!val.Read){
|
|
|
+ val.Read = true;
|
|
|
+ let params = {
|
|
|
+ Content: [{
|
|
|
+ Id: val.Id,
|
|
|
+ Read: true
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ messgeUpdate(params, res => {
|
|
|
+ Bus.$emit('getUnreadCountUpdate')
|
|
|
+ });// 展开更新为已读状态,未读数量同步变更
|
|
|
}
|
|
|
- messgeUpdate(params, res => {
|
|
|
- Bus.$emit('getUnreadCountUpdate')
|
|
|
- });// 展开更新为已读状态,未读数量同步变更
|
|
|
}
|
|
|
}
|
|
|
};
|