|  | @@ -511,17 +511,16 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 上传前
 | 
	
		
			
				|  |  |      uploadBefore(file, done, loading,column) {
 | 
	
		
			
				|  |  | -      console.log(loading)
 | 
	
		
			
				|  |  | +      console.log(file.type)
 | 
	
		
			
				|  |  |        const is2M = file.size / 1024 / 1024 < 2
 | 
	
		
			
				|  |  | -      const isType = file.type === ("image/jpeg" || "image/png" || "image/jpg")
 | 
	
		
			
				|  |  | +      const isType = file.type === "image/jpeg" || file.type === "image/png" || file.type === "image/jpg"
 | 
	
		
			
				|  |  | +      console.log(isType)
 | 
	
		
			
				|  |  |        if (!isType) {
 | 
	
		
			
				|  |  |          this.$message.error('图片只能是JPG、JPEG、PNG格式')
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  |          loading()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        if (!is2M) {
 | 
	
		
			
				|  |  |          this.$message.error('图片大小不能超过2M')
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  |          loading()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        const img = new Image();
 |