소스 검색

禅道196

gangyj 3 년 전
부모
커밋
c74c6532ec
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/manager/projectinfo/list.vue

+ 5 - 1
src/views/manager/projectinfo/list.vue

@@ -291,7 +291,11 @@ export default {
             type: "success",
             message: "删除成功!"
           });
-          this.init();
+          //删除后当前列表为空,且不是第一页,往前翻一页
+          if(this.projectPageList.length == 1 && this.page.currentPage >1){
+            this.page.currentPage--;
+          }
+          this.getProjectPageList();
           this.projectVisible = false;
         })
       })