<div class="pagination" v-if="pageshow">
    <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="cur_page"
        :page-size="10"
        layout="total, prev, pager, next, jumper"
        :total="recordsTotal">
    </el-pagination>
</div>

在搜索改变页码的时候加上如下代码

原文链接:https://blog.csdn.net/qq_33692349/java/article/details/91490480

this.page= “新的页码”
this.getData();//获取数据
this.pageshow = false;//让分页隐藏
this.$nextTick(() => {//重新渲染分页
    this.pageshow = true;
})






 

 
element-ui分页组件修改当前页current-page后current-change事件不触发
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
猜你喜欢
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-06-24
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案