内容列表分页
This commit is contained in:
@@ -58,7 +58,8 @@ export default {
|
||||
categorys: [],
|
||||
categoryList: [],
|
||||
pageShow: false,
|
||||
search: {}
|
||||
search: {},
|
||||
current: 1
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -103,7 +104,7 @@ export default {
|
||||
},
|
||||
getCategoryList() {
|
||||
this.$instance.post("/app/appcontentinfo/list", null, {
|
||||
params: {...this.search, size: 10}
|
||||
params: {...this.search, size: 10, current: this.current}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.categoryList = this.current > 1 ? [...this.categoryList, ...res.data.records] : res.data.records;
|
||||
|
||||
Reference in New Issue
Block a user