触发前提

  1. data上创建一个属性currentPage
  2. 点击触发查询方法searchData时,传一个参数进去,其他情况调用searchData不必传参
  3. 分页组件上必须有sync :current-page.sync="currentPage"
  4. 重点就是searchData里的写法,见图

elementUI分页bug
elementUI分页bug

elementUI分页bug

elementUI分页bug

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-05-16
  • 2021-11-07
  • 2021-06-25
  • 2022-12-23
相关资源
相似解决方案