修改PCTree的bug
This commit is contained in:
parent
99d8db171c
commit
23c5eb13b9
@ -5,7 +5,11 @@ SV.registerLayout('PCTree', {
|
||||
|
||||
sourcesPreprocess(sources) {
|
||||
|
||||
sources[0].rootLabel = ['data', 'parent', 'firstChild'];
|
||||
for(let i = 0; i < sources.length; i++){
|
||||
if(sources[i].root){
|
||||
sources[i].rootLabel = ['data', 'parent', 'firstChild'];
|
||||
}
|
||||
}
|
||||
|
||||
return sources;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user