提交 932164ed authored 作者: lihuihui's avatar lihuihui

修改消息

上级 8fc1271c
......@@ -14,7 +14,7 @@ export default class OtherAPI extends BaseAPI {
* 标记已读未读
*/
setMyMsg = (rid) => this.post(`/v2/education/message/${rid}`, {})
getNavMsg = (rid) => this.get('/v2/education/message/num', {})
getNavMsg = (rid) => this.get(`/v2/education/message/num?v=${new Date().getTime()}`, {})
/**
* 调用退出登录
*/
......
......@@ -41,10 +41,10 @@ export default {
if (typeof val === 'number' && this.msgList[val].isShow === 0) {
cAction.Other.setMyMsg(this.msgList[val].id).then(json => {
this.getData()
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
cAction.Other.getNavMsg().then(data => {
this.$store.commit('myMsg', data.num)
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
}
},
getData () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论