Просмотр исходного кода

删除失败一直刷新问题

QuietShadow 3 лет назад
Родитель
Сommit
f0ac8ea979

+ 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('至少要选择一条数据');