소스 검색

Update profile

Daniel Supernault 6 년 전
부모
커밋
a94569077e
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      resources/assets/js/components/Profile.vue

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

@@ -559,11 +559,11 @@ export default {
 			})
 			})
 			.then(res => {
 			.then(res => {
 				let data = res.data;
 				let data = res.data;
-				this.timeline = data;
 				let ids = data.map(status => status.id);
 				let ids = data.map(status => status.id);
 				this.min_id = Math.max(...ids);
 				this.min_id = Math.max(...ids);
 				this.max_id = Math.min(...ids);
 				this.max_id = Math.min(...ids);
 				this.modalStatus = _.first(res.data);
 				this.modalStatus = _.first(res.data);
+				this.timeline = data;
 				this.ownerCheck();
 				this.ownerCheck();
 				this.loading = false;
 				this.loading = false;
 			}).catch(err => {
 			}).catch(err => {
@@ -592,11 +592,11 @@ export default {
 			}).then(res => {
 			}).then(res => {
 				if (res.data.length && this.loading == false) {
 				if (res.data.length && this.loading == false) {
 					let data = res.data;
 					let data = res.data;
-					this.timeline.push(...data);
 					let ids = data.map(status => status.id);
 					let ids = data.map(status => status.id);
 					this.max_id = Math.min(...ids);
 					this.max_id = Math.min(...ids);
-					this.loading = false;
+					this.timeline.push(...data);
 					$state.loaded();
 					$state.loaded();
+					this.loading = false;
 				} else {
 				} else {
 					$state.complete();
 					$state.complete();
 				}
 				}