修改分页不共用的处理

This commit is contained in:
daihh
2022-10-18 16:15:06 +08:00
parent 3817f4f74a
commit 677adb94c5

View File

@@ -51,7 +51,7 @@
<book-list></book-list> <book-list></book-list>
</el-tab-pane> --> </el-tab-pane> -->
</el-tabs> </el-tabs>
<div style="text-align: center; margin-top:57px;" v-show="page.count > 0"> <div style="text-align: center; margin-top:57px;" v-show="page.count > 0 && activeName!='7'">
<el-pagination <el-pagination
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@@ -469,12 +469,10 @@
}, },
handleClick() { handleClick() {
if(this.activeName == '7') { if(this.activeName == '7') {
this.$refs.followList.resetActive(); //单独的分页,所以这里不与当前页面的分页共用
//this.page.count =0; this.$refs.followList.resetActive();
this.$refs.followList.getPage(); this.$refs.followList.getPage();
//console.log(this.$refs.followList,'llllmj') return
this.page.count = this.$refs.followList.count;
return
} }
if(this.activeName == '8') { if(this.activeName == '8') {
this.page.count = 0; this.page.count = 0;