11
WXL
2024-02-20 4fbeee3784d4be5483ed7ec9e00a875d66bc9ed0
src/layout/components/Navbar.vue
@@ -113,20 +113,20 @@
    };
  },
  mounted() {
    this.returs();
    // this.returs();
  },
  methods: {
    async returs() {
      await listSystemmessageCount()
        .then((res) => {
          this.badgeVal = res.data;
          if (this.badgeVal > 0) {
            this.isBadgeHidden = false;
          }
        })
        .catch((error) => {});
    },
//     async returs() {
//       await listSystemmessageCount()
//         .then((res) => {
//           this.badgeVal = res.data;
// console.log('跑');
//           if (this.badgeVal > 0) {
//             this.isBadgeHidden = false;
//           }
//         })
//         .catch((error) => {});
//     },
    clickMessage() {
      this.$router.push({
        path: "/message",