1.0.6
This commit is contained in:
parent
ebccd2d698
commit
2f2f5f110c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -108,7 +108,7 @@ Lay.fn.use = function(apps, callback, exports){
|
|||||||
//静态资源host
|
//静态资源host
|
||||||
config.host = config.host || (dir.match(/\/\/([\s\S]+?)\//)||['//'+ location.host +'/'])[0];
|
config.host = config.host || (dir.match(/\/\/([\s\S]+?)\//)||['//'+ location.host +'/'])[0];
|
||||||
|
|
||||||
if(apps.length === 0 || layui['layui.all']){
|
if(apps.length === 0 || (layui['layui.all'] && modules[item])){
|
||||||
return typeof callback === 'function' && callback.apply(layui, exports), that;
|
return typeof callback === 'function' && callback.apply(layui, exports), that;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user