瀏覽代碼

Update NotificationCard.vue

Daniel Supernault 6 年之前
父節點
當前提交
d543087bc6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      resources/assets/js/components/NotificationCard.vue

+ 3 - 1
resources/assets/js/components/NotificationCard.vue

@@ -70,7 +70,9 @@
 		},
 
 		mounted() {
-			this.fetchNotifications();
+			if(window.outerWidth > 767) {
+				this.fetchNotifications();
+			}
 		},
 
 		updated() {