소스 검색

1. 优化

MONSTER-ygh 1 년 전
부모
커밋
12d2f2070b
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/views/team/teamMr/index.vue

+ 6 - 1
src/views/team/teamMr/index.vue

@@ -300,6 +300,7 @@ export default {
     /** 查询列表 */
     getList() {
       this.loading = true;
+      this.dataList = []
       pageList(this.addDateRange(this.queryParams, this.dateRange))
       .then(response => {
           this.dataList = response.data.rows;
@@ -309,7 +310,11 @@ export default {
           this.total = response.data.total;
           this.loading = false;
         }
-      );
+      ).catch(()=>{
+        this.dataList = []
+        this.total = 0
+        this.loading = false;
+      })
     },
     // 取消按钮
     cancel() {