Skip to content

Commit

Permalink
fix(about-review): limit 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauto committed Oct 28, 2021
1 parent 2fe95f4 commit b2c9d34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export default defineComponent({
},
isRemain: {
get() {
console.log("hi");
return this.reviewLimit < this.review.total;
},
},
Expand All @@ -175,11 +174,14 @@ export default defineComponent({
if (this.isRemain) {
this.reviewLimit += 6;
} else {
this.reviewLimit = this.review.total;
this.review.more = false;
}
const reviews = await this.$content("about/reviews")
.only(["id", "th", "title", "author", "href"])
.sortBy("id", "desc")
.fetch(this.reviewLimit)
.limit(this.reviewLimit)
.fetch()
.catch((err) => {
console.log(err);
});
Expand Down

0 comments on commit b2c9d34

Please sign in to comment.