MONSTER-ygh hace 1 año
padre
commit
12d2f2070b
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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() {