From c801586d3b3b82ff6fb962b5f7e5d4fdc7ad2d20 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Fri, 26 Apr 2024 14:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8F=90=E9=86=922?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d768ec4a..37c85cc7 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;