diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d768ec4..37c85cc 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -308,9 +308,9 @@ export default { getUnReadList() { console.log("++未读消息查询++"); getUnReadComment(this.queryParams).then(response => { - if(response>0){ - this.unReadComments='您有'+response+'新的未读消息,请点击查看'; - this.commentNum = response; + if(response.length>0){ + this.unReadComments='您有'+response.length+'新的未读消息,请点击查看'; + this.commentNum = response.length; this.showPrise = true; }else{ this.showPrise = false;