浏览代码

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() {