问题:当进行模糊查询的时候,如果在page=3页,那么进行模糊查询后不会回到第一页,通过:current-page.sync="currentPage"设计即可

    <el-pagination
      style="text-align:right;margin-top:10px;"
      background
      :page-size="5"
      :current-page.sync="currentPage"
      layout=" prev, pager, next,total, jumper"
      :total="totalCount"
      @current-change="handleCurrentChange"
    ></el-pagination>

 data() {
    return {
 
      currentPage: 1,
 
    };

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
相关资源
相似解决方案