This commit is contained in:
PC-202306242200\Administrator
2024-09-20 16:23:00 +08:00
parent 7d2f597082
commit 43e4dfa700
6 changed files with 39 additions and 38 deletions

View File

@@ -38,5 +38,6 @@ export const childrenRemove = (data: Item[] | undefined): Item[] => {
list.push(i);
}
});
return list.sort((a, b) => (a.orderNum === 0 ? -1 : b.orderNum === 0 ? 1 : a.orderNum - b.orderNum));
// .sort((a, b) => (a.orderNum === 0 ? -1 : b.orderNum === 0 ? 1 : a.orderNum - b.orderNum));
return list
};