mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	fix 修复 文件/图片上传组件 第一次上传报错导致后续上传无限loading问题
This commit is contained in:
		@@ -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--;
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    // 删除文件
 | 
			
		||||
 
 | 
			
		||||
@@ -144,6 +144,7 @@ export default {
 | 
			
		||||
      } else {
 | 
			
		||||
        this.$modal.msgError(res.msg);
 | 
			
		||||
        this.$modal.closeLoading();
 | 
			
		||||
        this.number--;
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    // 上传前loading加载
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user