浏览代码

Update Profile and Timeline components

Daniel Supernault 6 年之前
父节点
当前提交
153494c94f
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3 0
      resources/assets/js/components/Profile.vue
  2. 3 0
      resources/assets/js/components/Timeline.vue

+ 3 - 0
resources/assets/js/components/Profile.vue

@@ -580,6 +580,9 @@ export default {
 		},
 
 		infiniteTimeline($state) {
+			if(this.loading) {
+				return;
+			}
 			let apiUrl = '/api/v1/accounts/' + this.profileId + '/statuses';
 			axios.get(apiUrl, {
 				params: {

+ 3 - 0
resources/assets/js/components/Timeline.vue

@@ -489,6 +489,9 @@
 			},
 
 			infiniteTimeline($state) {
+				if(this.loading) {
+					return;
+				}
 				let apiUrl = false;
 				switch(this.scope) {
 					case 'home':