소스 검색

删除失败一直刷新问题

QuietShadow 3 년 전
부모
커밋
f0ac8ea979
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/energyOperationSupport/components/securitys/SecurityFile.vue

+ 4 - 2
src/views/energyOperationSupport/components/securitys/SecurityFile.vue

@@ -1052,11 +1052,13 @@ export default {
 
                                 }
                                 that.$message.error(res.message);
-                            }
+                            }
+                            that.loading = false;
                         }).catch(function () {
                           that.loading = false;
                         });
-                }).catch(() => {
+                }).catch(() => {
+                  that.loading = false;
                 });
             } else {
                 this.$message.error('至少要选择一条数据');