forked from verdnatura/salix-front
fix(url): filter
This commit is contained in:
parent
bbf847e1a0
commit
128904970b
|
@ -35,7 +35,7 @@ const $props = defineProps({
|
||||||
},
|
},
|
||||||
hiddenTags: {
|
hiddenTags: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => ['filter'],
|
||||||
},
|
},
|
||||||
customTags: {
|
customTags: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
@ -158,7 +158,7 @@ const customTags = computed(() =>
|
||||||
|
|
||||||
async function remove(key) {
|
async function remove(key) {
|
||||||
delete params.value[key];
|
delete params.value[key];
|
||||||
delete params.value.filter?.where[key];
|
delete params.value.filter?.where?.[key];
|
||||||
params.value[key] = undefined;
|
params.value[key] = undefined;
|
||||||
await arrayData.applyFilter({ params: params.value });
|
await arrayData.applyFilter({ params: params.value });
|
||||||
emit('remove', key);
|
emit('remove', key);
|
||||||
|
@ -223,7 +223,6 @@ function formatValue(value) {
|
||||||
{{ t(`No filters applied`) }}
|
{{ t(`No filters applied`) }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{ tags }}
|
|
||||||
<VnFilterPanelChip
|
<VnFilterPanelChip
|
||||||
v-for="chip of tags"
|
v-for="chip of tags"
|
||||||
:key="chip.label"
|
:key="chip.label"
|
||||||
|
|
Loading…
Reference in New Issue