瀏覽代碼

Update Profile.vue

marcin mikołajczak 6 年之前
父節點
當前提交
46d8ff90f8
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      resources/assets/js/components/Profile.vue

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

@@ -671,6 +671,9 @@ export default {
 			.then(res => {
 				this.following = res.data;
 				this.followingCursor++;
+                if(res.data.length < 10) {
+					this.followingMore = false;
+				}
 			});
 			this.$refs.followingModal.show();
 		},
@@ -688,6 +691,9 @@ export default {
 			.then(res => {
 				this.followers = res.data;
 				this.followerCursor++;
+                if(res.data.length < 10) {
+					this.followerMore = false;
+				}
 			})	
 			this.$refs.followerModal.show();
 		},