mirror of
https://github.com/CorentinTh/it-tools.git
synced 2024-12-28 03:05:54 +08:00
refactor: menu option key
This commit is contained in:
parent
5f74037105
commit
390ef93232
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ const m = toolsByCategory.map(category => ({
|
|||
type: 'group',
|
||||
children: category.components.map(({ name, path, icon }) => ({
|
||||
label: makeLabel(name, path),
|
||||
icon: makeIcon(icon)
|
||||
icon: makeIcon(icon),
|
||||
key: name
|
||||
}))
|
||||
}))
|
||||
|
||||
|
|
Loading…
Reference in a new issue