فهرست منبع

优化消息通知徽标更新的性能

yusheng 10 ماه پیش
والد
کامیت
dcb43e9372
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/layout/components/header-notice.vue

+ 5 - 1
src/layout/components/header-notice.vue

@@ -203,7 +203,11 @@
       }
     },
     watch: {
-      noticeCount() {
+      noticeCount(n, o) {
+        if (n == o) {
+          return;
+        }
+        console.log(1);
         this.$store.dispatch('user/setMenuBadge', {
           path: '/page-wt/message',
           value: this.noticeCount,