瀏覽代碼

禅道bug 修复:删除调度工单后加载状态及数据刷新逻辑优化

yusheng 9 月之前
父節點
當前提交
0d5abee610
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/schedulingCalculation/mergePutMesh/index.vue

+ 4 - 4
src/views/schedulingCalculation/mergePutMesh/index.vue

@@ -1152,13 +1152,13 @@
             // let ids = row.id;
             deleteScheduleWorkOrder(row.id)
               .then((res) => {
-                this.pageLoading = false;
                 this.$message.success(res.data.msg);
-                this.getScheduleWorkOrder({});
               })
-              .catch(() => {
+              .finally(() => {
                 this.pageLoading = false;
-              });
+                this.getScheduleWorkOrder({});
+              })
+              .catch(() => {});
           })
           .catch(() => {});
       }