|
@@ -45,7 +45,7 @@ export default {
|
|
|
videoList: [],
|
|
|
page: {
|
|
|
num: 1,
|
|
|
- size: 12,
|
|
|
+ size: 10,
|
|
|
total: 0
|
|
|
}
|
|
|
});
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
const { code, data } = await this.$u.api.publicClasses.getPublicClassesListApi({ id: 1, pageNum: num, pageSize: size });
|
|
|
if (code === 200) {
|
|
|
this.videoList = this.videoList.concat(data?.rows ?? [])
|
|
|
- this.page.total = Number(data?.total ?? 0);
|
|
|
+ this.page.total = Number(data?.pages ?? 0);
|
|
|
if (this.page.num >= this.page.total) this.status = 'nomore';
|
|
|
else this.status = 'loading';
|
|
|
}
|
|
@@ -79,11 +79,11 @@ export default {
|
|
|
})
|
|
|
if (code === 200) {
|
|
|
const type = this.iswap();
|
|
|
- const { text } = data.find((item) => item.label === type);
|
|
|
- if (!location.href.includes(text)) {
|
|
|
- location.href = text;
|
|
|
- return
|
|
|
- }
|
|
|
+ // const { text } = data.find((item) => item.label === type);
|
|
|
+ // if (!location.href.includes(text)) {
|
|
|
+ // location.href = text;
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.handleVideoList()
|
|
|
}
|
|
|
},
|