浏览代码

Update Hashtag.vue component

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

+ 3 - 1
resources/assets/js/components/Hashtag.vue

@@ -115,7 +115,8 @@
 			getResults() {
 			getResults() {
 				axios.get('/api/v2/discover/tag', {
 				axios.get('/api/v2/discover/tag', {
 					params: {
 					params: {
-						hashtag: this.hashtag
+						hashtag: this.hashtag,
+						page: this.page
 					}
 					}
 				}).then(res => {
 				}).then(res => {
 					let data = res.data;
 					let data = res.data;
@@ -129,6 +130,7 @@
 					//this.top = tags.slice(6, 9);
 					//this.top = tags.slice(6, 9);
 					this.loaded = true;
 					this.loaded = true;
 					this.following = data.follows;
 					this.following = data.follows;
+					this.page++;
 				});
 				});
 			},
 			},