diff --git a/src/components/GiIconSelector/index.vue b/src/components/GiIconSelector/index.vue index 499f0452..3deee56e 100644 --- a/src/components/GiIconSelector/index.vue +++ b/src/components/GiIconSelector/index.vue @@ -122,7 +122,7 @@ const search = () => { if (searchValue.value) { const temp = searchValue.value.toLowerCase() searchList.value = iconList.filter((item) => { - return item.toLowerCase().startsWith((temp.startsWith('icon') ? '' : 'icon') + temp) + return item.toLowerCase().includes((temp)) }) total.value = searchList.value.length currentPageIconList.value = searchList.value.slice(0, pageSize)