diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue index 27023262e..532c79322 100644 --- a/src/pages/Order/Card/OrderCatalogFilter.vue +++ b/src/pages/Order/Card/OrderCatalogFilter.vue @@ -10,10 +10,8 @@ import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue'; import VnInput from 'src/components/common/VnInput.vue'; import getParamWhere from 'src/filters/getParamWhere'; import CatalogFilterValueDialog from 'src/pages/Order/Card/CatalogFilterValueDialog.vue'; +import { useArrayData } from 'composables/useArrayData'; -const { t } = useI18n(); - -const route = useRoute(); const props = defineProps({ dataKey: { type: String, @@ -29,6 +27,11 @@ const props = defineProps({ }, }); +const { t } = useI18n(); +const route = useRoute(); + +const arrayData = useArrayData(props.dataKey); + const categoryList = ref(null); const selectedCategoryFk = ref(null); const typeList = ref([]); @@ -54,7 +57,8 @@ const resetCategory = (params, search) => { typeList.value = null; params.categoryFk = null; params.typeFk = null; - search(); + arrayData.store.userFilter = null; + removeTagGroupParam(params, search); }; const selectCategory = (params, category, search) => {