From 11bf70d76ce3aa42d7c5ae2d94e4ebeb0a281082 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 18 Oct 2024 14:12:23 +0200 Subject: [PATCH] fix: category and tags filters --- src/components/ui/VnSearchbar.vue | 4 +- src/pages/Order/Card/OrderCatalogFilter.vue | 111 +++++++++++++++----- 2 files changed, 88 insertions(+), 27 deletions(-) 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); }