修改消息

This commit is contained in:
lmj
2022-10-19 17:58:50 +08:00
parent 6c94f26f4e
commit 7a4648a8a3

View File

@@ -95,10 +95,10 @@ export default {
},
mounted() {
this.queryMessage(true);
this.isReadChooseList();
// this.isReadChooseList();
},
updated() {
this.isReadChooseList();
// this.isReadChooseList();
},
watch: {
checkAll(newVal) {
@@ -179,14 +179,17 @@ export default {
if (!this.data[i].isRead) {
ids.push(this.data[i].id);
}
}
if (ids.length !== 0) {
apiMessage.updateIsRead(ids).then(res => {
if (res.status == 200) {
this.$store.dispatch('refrashMsg');
this.queryMessage(true)
}
});
}
// this.queryMessage();
},
delChooseList() {
let list = this.data.filter(item => item.checked).map(v => v.id);