chore: update
This commit is contained in:
parent
fc09eef635
commit
823a622c77
2
dist/layui.js
vendored
2
dist/layui.js
vendored
File diff suppressed because one or more lines are too long
@ -118,6 +118,10 @@ layui.use(['upload', 'element'], function(){
|
||||
obj.preview(function(index, file, result){
|
||||
$('#demo1').attr('src', result); //图片链接(base64)
|
||||
});
|
||||
|
||||
return;
|
||||
layer.msg('不允许上传')
|
||||
return false;
|
||||
}
|
||||
,done: function(res){
|
||||
|
||||
|
@ -342,8 +342,8 @@ layui.define('layer' , function(exports){
|
||||
}
|
||||
}
|
||||
|
||||
//上传前的回调
|
||||
options.before && options.before(args);
|
||||
//上传前的回调 - 如果回调函数明确返回false,则停止上传(#pulls55)
|
||||
if(options.before && (options.before(args) === false)) return;
|
||||
|
||||
//IE兼容处理
|
||||
if(device.ie){
|
||||
|
Loading…
Reference in New Issue
Block a user