浏览代码

finally适配更改

panhui 5 年之前
父节点
当前提交
75cdcdbda6
共有 1 个文件被更改,包括 2 次插入1 次删除
  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.empty = res.data.recordsTotal === 0;
                     this.finish = this.empty ? true : res.data.totalPage === this.pageNum + 1;
+                    this.loading = false;
                 })
-                .finally(() => {
+                .catch(() => {
                     this.loading = false;
                 });
         }