内容列表分页

This commit is contained in:
liuye
2023-06-14 16:36:06 +08:00
parent 1f6e518300
commit da25a3750e

View File

@@ -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;