|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import {FontIcon} from '@components';
|
|
|
import {TreeRoleMenuData} from '@models';
|
|
import {TreeRoleMenuData} from '@models';
|
|
|
import {ReactNode} from 'react';
|
|
import {ReactNode} from 'react';
|
|
|
|
|
|
|
@@ -23,7 +24,7 @@ export function sortMenu(menus: TreeRoleMenuData[]) {
|
|
|
label: name,
|
|
label: name,
|
|
|
pid: pId,
|
|
pid: pId,
|
|
|
url,
|
|
url,
|
|
|
- icon: img && <i className={`fa-solid fa-${img} grey-icon`} />,
|
|
|
|
|
|
|
+ icon: img && <FontIcon name={img} />,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
pId === '0'
|
|
pId === '0'
|