Skip to content

Commit 2f2f5f1

Browse files
author
sentsin
committed
1.0.6
1 parent ebccd2d commit 2f2f5f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/lay/dest/layui.all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/layui.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/layui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Lay.fn.use = function(apps, callback, exports){
108108
//静态资源host
109109
config.host = config.host || (dir.match(/\/\/([\s\S]+?)\//)||['//'+ location.host +'/'])[0];
110110

111-
if(apps.length === 0 || layui['layui.all']){
111+
if(apps.length === 0 || (layui['layui.all'] && modules[item])){
112112
return typeof callback === 'function' && callback.apply(layui, exports), that;
113113
}
114114

0 commit comments

Comments
 (0)