处理方法:

// 删除需求
        delNeed(demand_id){
          API_MyInform.delDemand(demand_id).then(res => {
            this.$layerMessage.success('删除成功!');
            // 更新当前页码
            let totalPage = Math.ceil((this.totalNum - 1)/this.pageSize);
            let currentPage = this.currentPage > totalPage ? totalPage : this.currentPage;
            this.currentPage = this.currentPage < 1 ? 1 : currentPage;
            this.getMyDemandList();
          })
        },

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-17
  • 2021-10-30
  • 2022-12-23
  • 2021-08-05
  • 2021-11-17
猜你喜欢
  • 2021-11-05
  • 2021-12-13
  • 2021-11-28
  • 2021-05-30
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案