mirror of https://github.com/layui/layui
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
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue