瀏覽代碼

Update Timeline.vue

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

+ 6 - 2
resources/assets/js/components/Timeline.vue

@@ -397,7 +397,9 @@
 			.then(res => {
 				this.config = res.data;
 				this.fetchTimelineApi();
-				this.fetchProfile();
+				if(window.outerWidth > 767) {
+					this.fetchProfile();
+				}
 			});
 		},
 
@@ -459,7 +461,9 @@
 					this.max_id = Math.min(...ids);
 					$('.timeline .pagination').removeClass('d-none');
 					this.loading = false;
-					this.expRec();
+					if(window.outerWidth > 767) {
+						this.expRec();
+					}
 				}).catch(err => {
 				});
 			},