From 7b0bd01e26aa3e24f5f5ff5134ed766bfdb479aa Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Mon, 3 Apr 2023 16:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/NavBar/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layouts/components/NavBar/index.vue b/src/layouts/components/NavBar/index.vue index bf6ba90..0661e92 100644 --- a/src/layouts/components/NavBar/index.vue +++ b/src/layouts/components/NavBar/index.vue @@ -216,8 +216,9 @@ export default { }).then((res) => { if (res.code == 1) { this.$store.commit("user/setGetMessageFlag", false) - this.messageCount = res.data.total - this.messageList = [...this.messageList, ...res.data.records] + // this.messageCount = res.data.page.total + this.messageCount = res.data.unReadNum + this.messageList = [...this.messageList, ...res.data.page.records] // console.log(res.data.total) } else { this.messageCount = 0 -- 2.22.0