This commit is contained in:
katherinehhh 2024-11-02 19:18:35 +08:00
parent c1d71ec996
commit 582f1d7ef8

View File

@ -109,8 +109,8 @@ export const useMenuSearch = (props: { children: any[]; showType?: boolean; hide
const lowerSearchValue = searchValue.toLocaleLowerCase();
return items.filter(
(item) =>
(item.label || item.title) &&
String(item.label || item.title)
(item.title || item.label) &&
String(item.title || item.label)
.toLocaleLowerCase()
.includes(lowerSearchValue),
);