Browse Source

finally适配更改

panhui 5 years ago
parent
commit
75cdcdbda6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/mixins/OrderList.js

+ 2 - 1
src/mixins/OrderList.js

@@ -41,8 +41,9 @@ export default {
                     this.list = [...this.list, ...res.data.data];
                     this.list = [...this.list, ...res.data.data];
                     this.empty = res.data.recordsTotal === 0;
                     this.empty = res.data.recordsTotal === 0;
                     this.finish = this.empty ? true : res.data.totalPage === this.pageNum + 1;
                     this.finish = this.empty ? true : res.data.totalPage === this.pageNum + 1;
+                    this.loading = false;
                 })
                 })
-                .finally(() => {
+                .catch(() => {
                     this.loading = false;
                     this.loading = false;
                 });
                 });
         }
         }