提交代码
This commit is contained in:
		
							parent
							
								
									6fc0b8d11d
								
							
						
					
					
						commit
						87575df13e
					
				| 
						 | 
					@ -194,7 +194,7 @@ export default {
 | 
				
			||||||
      this.uploadChunks(nextFile);
 | 
					      this.uploadChunks(nextFile);
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    beforeUpload(file) {
 | 
					    beforeUpload(file) {
 | 
				
			||||||
      const maxSize = 10 * 1024 * 1024*1024; // 限制文件最大为 5MB
 | 
					      const maxSize = 2 * 1024 * 1024*1024; // 限制文件最大为 5MB
 | 
				
			||||||
      if (file.size > maxSize) {
 | 
					      if (file.size > maxSize) {
 | 
				
			||||||
        this.$message.error('文件大小不能超过 2GB');
 | 
					        this.$message.error('文件大小不能超过 2GB');
 | 
				
			||||||
        return false; // 阻止上传
 | 
					        return false; // 阻止上传
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue