diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 76519589..5f7ca532 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -361,11 +361,10 @@ export default { /** 获取未读消息数 */ getUnReadList() { console.log("++未读消息查询++"); - getUnReadComment(this.queryParams).then((response) => { - if (response > 0) { - this.unReadComments = "您有" + response + "新的未读消息,请点击查看"; - this.commentNum = response; - console.log(response,'ssssss',) + getUnReadComment(this.queryParams).then(response => { + if(response.length>0){ + this.unReadComments='您有'+response.length+'新的未读消息,请点击查看'; + this.commentNum = response.length; this.showPrise = true; } else { this.showPrise = false;