Update upload.js
修复拖拽上传时index为0的bug
This commit is contained in:
		
							parent
							
								
									b5f6f89cfe
								
							
						
					
					
						commit
						7ddc0a39d6
					
				@ -502,12 +502,7 @@ layui.define('layer' , function(exports){
 | 
			
		||||
        
 | 
			
		||||
        othis.removeAttr('lay-over');
 | 
			
		||||
        setChooseFile(files);
 | 
			
		||||
        
 | 
			
		||||
        if(options.auto){
 | 
			
		||||
          that.upload(files);
 | 
			
		||||
        } else {
 | 
			
		||||
          setChooseText(files);
 | 
			
		||||
        }
 | 
			
		||||
        options.auto ? that.upload() : setChooseText(files); //是否自动触发上传
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user