diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index fc292e980..569e0ed18 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -9,7 +9,7 @@ import { useStateStore } from 'src/stores/useStateStore'; const quasar = useQuasar(); const { t } = useI18n(); const state = useStateStore(); -const emit = defineEmits(['on-search']); +const emit = defineEmits(['onSearch']); const props = defineProps({ dataKey: { @@ -119,7 +119,7 @@ async function search() { delete filter.params.search; } await arrayData.applyFilter(filter); - emit('on-search', store.data); + emit('onSearch', store.data); }