diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue index 1b3e3a773..c2fadbb95 100644 --- a/src/components/VnTable/VnFilter.vue +++ b/src/components/VnTable/VnFilter.vue @@ -112,7 +112,7 @@ async function addFilter(value) { if (columnFilter.value.alias) field = columnFilter.value.alias + '.' + field; return await arrayData.addFilterWhere({ [field]: value }); } - await arrayData.addFilter({ [field]: value }); + await arrayData.addFilter({ params: { [field]: value } }); } function alignRow() { diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 6db4251e1..3b50b60ad 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -18,10 +18,6 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { const page = ref(1); - onUnmounted(() => { - destroy(); - }); - onMounted(() => { setOptions(); store.skip = 0; @@ -222,7 +218,6 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { : path.replace(/:id.*/, ''); if (route.path != to) { - destroy(); const pushUrl = { path: to }; if (to.endsWith('/list') || to.endsWith('/')) pushUrl.query = newUrl.query;