1
This commit is contained in:
@@ -9,6 +9,7 @@ interface Item {
|
||||
menuType?: string;
|
||||
disabledTooltip?: boolean;
|
||||
access?: any;
|
||||
orderNum?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +38,5 @@ export const childrenRemove = (data: Item[] | undefined): Item[] => {
|
||||
list.push(i);
|
||||
}
|
||||
});
|
||||
|
||||
return list; // 返回处理后的列表
|
||||
return list.sort((a, b) => (a.orderNum === 0 ? -1 : b.orderNum === 0 ? 1 : a.orderNum - b.orderNum));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user