This commit is contained in:
liuye
2023-05-26 09:41:40 +08:00
parent f82ce583fe
commit 1836b271aa
2 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,6 @@ export default {
this.getList() this.getList()
}, },
getList() { getList() {
console.log(this.current, this.pages)
if(this.current > this.pages) return if(this.current > this.pages) return
this.$instance.post(`/app/appexaminationinfo/listForXCX`, null, { this.$instance.post(`/app/appexaminationinfo/listForXCX`, null, {
params: { params: {

View File

@@ -51,18 +51,19 @@ export default {
this.getList() this.getList()
}, },
getList() { getList() {
console.log(this.current, this.pages) this.$loading()
if(this.current > this.pages) return if(this.current > this.pages) return
this.$instance.post(`/app/appcourseinfo/listByApplet`, null, { this.$instance.post(`/app/appcourseinfo/listByApplet`, null, {
params: { params: {
current: this.current, current: this.current,
size: 6, size: 5,
title: this.title title: this.title
} }
}).then(res=> { }).then(res=> {
if(res?.data) { if(res?.data) {
this.classList = this.current==1? res.data.records: [...this.classList,...res.data.records] this.classList = this.current==1? res.data.records: [...this.classList,...res.data.records]
this.pages = res.data.pages this.pages = res.data.pages
this.$hideLoading()
// this.classList = res.data.records // this.classList = res.data.records
} }
}) })