1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| function createdAuth(list,obj){
| for (let i = 0; i < list.length; i++) {
| let item = list[i];
| if(item.path&&typeof(item.path)!='undefined'&&item.path!=''){
| let _path=item.path.toLowerCase();
| obj[_path]=true;
| }
| if (Object.prototype.toString.call(item.children) == '[object Array]' && item.children.length > 0) {
| createdAuth(item.children,obj);
| }
| }
| }
|
| export {
| createdAuth
| }
|
|