pull/6/head v1.0.6
sentsin 2016-11-30 05:05:54 +08:00
parent ebccd2d698
commit 2f2f5f110c
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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;
}