浏览代码

Update Profile component

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

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

@@ -352,6 +352,7 @@ export default {
 		fetchProfile() {
 			axios.get('/api/v1/accounts/' + this.profileId).then(res => {
 				this.profile = res.data;
+				this.loading = false;
 			});
 			axios.get('/api/v1/accounts/verify_credentials').then(res => {
 				this.user = res.data;
@@ -401,7 +402,6 @@ export default {
 					this.timeline.push(...data);
 					this.timelinePage += 1;
 					$state.loaded();
-					this.loading = false;
 				} else {
 					$state.complete();
 				}