mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 05:08:42 +08:00
fix: bug
This commit is contained in:
parent
c1d71ec996
commit
582f1d7ef8
@ -109,8 +109,8 @@ export const useMenuSearch = (props: { children: any[]; showType?: boolean; hide
|
|||||||
const lowerSearchValue = searchValue.toLocaleLowerCase();
|
const lowerSearchValue = searchValue.toLocaleLowerCase();
|
||||||
return items.filter(
|
return items.filter(
|
||||||
(item) =>
|
(item) =>
|
||||||
(item.label || item.title) &&
|
(item.title || item.label) &&
|
||||||
String(item.label || item.title)
|
String(item.title || item.label)
|
||||||
.toLocaleLowerCase()
|
.toLocaleLowerCase()
|
||||||
.includes(lowerSearchValue),
|
.includes(lowerSearchValue),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user