diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue index 7ceb277f..d55b796d 100644 --- a/ruoyi-ui/src/components/FileUpload/index.vue +++ b/ruoyi-ui/src/components/FileUpload/index.vue @@ -156,7 +156,7 @@ export default { // 上传失败 handleUploadError(err) { this.$modal.msgError("上传图片失败,请重试"); - this.$modal.closeLoading() + this.$modal.closeLoading(); }, // 上传成功回调 handleUploadSuccess(res) { @@ -172,6 +172,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 e3b638cf..67adf551 100644 --- a/ruoyi-ui/src/components/ImageUpload/index.vue +++ b/ruoyi-ui/src/components/ImageUpload/index.vue @@ -143,6 +143,7 @@ export default { } else { this.$modal.msgError(res.msg); this.$modal.closeLoading(); + this.number--; } }, // 上传前loading加载