yxh
yxh
2 天以前 8022f7036945b75f82f2dfc43055623f81ed98f6
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",