await message_setread_api(data).then(res => {
if (res && res.data.code == 1) {
this.$store.commit("$vuexSetMessageUnreadCount", msg_id ? -1 : 0);
this.messagesList.map(function (val) {
if (msg_id) {
val.read = msg_id == val.id ? 1 : val.read;
} else {
val.read = 1
}
})
} else {
this.errorTips(res.data.msg);
}
// this.isLoading = false
});