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