mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-05-23 21:39:36 +08:00
modified 修复JS三级目录的BUG
This commit is contained in:
parent
f7cb288026
commit
3dda26e893
@ -60,21 +60,20 @@ layui.define(function(exports) {
|
||||
/**
|
||||
* 开始循环
|
||||
*/
|
||||
this.each = function(arr) {
|
||||
this.each = function(arr,index) {
|
||||
if(arr == undefined) {
|
||||
arr = _father;
|
||||
}
|
||||
|
||||
var index = index ? index: 0;
|
||||
for(var i in arr) {
|
||||
var children = _that.getChildren(arr[i][_idName]);
|
||||
var counter = children.length;
|
||||
|
||||
_that.forBefore(arr[i], i, counter);
|
||||
_that.forCurr(arr[i], i, counter);
|
||||
|
||||
if(counter) {
|
||||
if(counter && index==0) {
|
||||
_that.callBefore(arr[i], i);
|
||||
_that.each(children);
|
||||
_that.each(children,2);
|
||||
_that.callAfter(arr[i], i);
|
||||
}
|
||||
|
||||
@ -82,4 +81,4 @@ layui.define(function(exports) {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user