diff --git a/src/layouts/components/NavBar/index.vue b/src/layouts/components/NavBar/index.vue index bf6ba90bcf32f88d9303b98125fb08ec168583aa..0661e9211977dc1969fc6cf59a8821bffb054996 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