elementui 翻页插件,最后一页所有数据删除掉,自动回到上一页,但是没有数据解决方法

 

 

 

elementui 翻页插件,最后一页所有数据删除掉,自动回到上一页,但是没有数据解决方法

 

 

 

 

elementui 翻页插件,最后一页所有数据删除掉,自动回到上一页,但是没有数据解决方法

 

 

  //删除最后一页所有数据后,自动定位到上一页,但是页面数据没有
                        let totalPage = Math.ceil((this.totalPage - 1) / this.eachPage);
                        let currentPage = this.currentPage_yggl > totalPage ? totalPage : this.currentPage_yggl;
                        this.currentPage_yggl = currentPage < 1 ? 1 : currentPage;
 
 

相关文章:

  • 2021-11-27
  • 2021-12-27
  • 2021-12-09
  • 2021-12-09
  • 2021-11-28
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案