Skip to content

Commit

Permalink
fix: handle search box console warning
Browse files Browse the repository at this point in the history
  • Loading branch information
flingyp committed Jun 21, 2023
1 parent 9727c3c commit 7d6cfe7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/layout/components/layout/BaseSearchItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RenderIconify from '~/components/common/RenderIconify.vue'
interface BaseSearchItemProps {
menu: VAdmireMenuOption
level: number
level?: number
}
const props = withDefaults(defineProps<BaseSearchItemProps>(), {
level: 0,
Expand Down
2 changes: 0 additions & 2 deletions src/layout/components/layout/BaseSearchMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ const inputKeyword = useDebounce(() => {
// remove all Spaces in the string
searchKeyWord.value = searchKeyWord.value.replace(/\s*/g, '')
const searchResult = fuse.search(searchKeyWord.value)
console.log('searchResult->>', searchResult)
// @ts-ignore
searchMenuList.value = searchResult.map((data) => data.item)
}, 200)
Expand Down

0 comments on commit 7d6cfe7

Please sign in to comment.