dev_2022-05-11
luoJunYong.123 3 years ago
parent fee316fe83
commit c75ad69140
  1. 13
      src/pages/information/contentManage/contentList.vue

@ -96,6 +96,14 @@ 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(res.articleList[0])
}
console.log(res)
if (!this.listData.length && this.totals) { if (!this.listData.length && this.totals) {
this.pageNo--; this.pageNo--;
this.getData(); this.getData();
@ -208,4 +216,9 @@ export default {
.off + span { .off + span {
display: none; display: none;
} }
.page-content {
height: 67vh;
overflow: auto!important;
}
</style> </style>
Loading…
Cancel
Save