zoneLocation order
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
813d7368f3
commit
75053618a2
|
@ -67,7 +67,7 @@ export default class Treeview extends Component {
|
|||
}
|
||||
|
||||
item.childs = newData.sort((a, b) => {
|
||||
let priority = b.isIncluded - a.isIncluded;
|
||||
let priority = (b.isIncluded - a.isIncluded) - 1;
|
||||
|
||||
if (b.name > a.name)
|
||||
priority++;
|
||||
|
|
|
@ -125,7 +125,6 @@ module.exports = Self => {
|
|||
|
||||
return priority;
|
||||
});
|
||||
console.log(sortedLeaves);
|
||||
const leaves = Object.assign([], sortedLeaves);
|
||||
|
||||
nestLeaves(leaves);
|
||||
|
|
Loading…
Reference in New Issue