diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue index e999f14f..bb5b3da6 100644 --- a/ruoyi-ui/src/components/FileUpload/index.vue +++ b/ruoyi-ui/src/components/FileUpload/index.vue @@ -157,7 +157,7 @@ export default { // 上传失败 handleUploadError(err) { this.$modal.msgError("上传图片失败,请重试"); - this.$modal.closeLoading() + this.$modal.closeLoading(); }, // 上传成功回调 handleUploadSuccess(res, file) { @@ -173,6 +173,7 @@ export default { } else { this.$modal.msgError(res.msg); this.$modal.closeLoading(); + this.number--; } }, // 删除文件 diff --git a/ruoyi-ui/src/components/ImageUpload/index.vue b/ruoyi-ui/src/components/ImageUpload/index.vue index 62199795..82c3b3ce 100644 --- a/ruoyi-ui/src/components/ImageUpload/index.vue +++ b/ruoyi-ui/src/components/ImageUpload/index.vue @@ -144,6 +144,7 @@ export default { } else { this.$modal.msgError(res.msg); this.$modal.closeLoading(); + this.number--; } }, // 上传前loading加载