|
|
@ -96,11 +96,6 @@ export default { |
|
|
|
this.$get(`${this.api.queryArticleByCondition}/${this.pageNo}/${this.pageSize}`, data).then(res => { |
|
|
|
this.$get(`${this.api.queryArticleByCondition}/${this.pageNo}/${this.pageSize}`, data).then(res => { |
|
|
|
this.listData = res.articleList; |
|
|
|
this.listData = res.articleList; |
|
|
|
this.totals = res.total; |
|
|
|
this.totals = res.total; |
|
|
|
|
|
|
|
|
|
|
|
for(let i=0; i<9; i++) { |
|
|
|
|
|
|
|
this.listData.push(this.listData[0]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.listData.length && this.totals) { |
|
|
|
if (!this.listData.length && this.totals) { |
|
|
|
this.pageNo--; |
|
|
|
this.pageNo--; |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|