0
0
Fork 0

Merge branch '6825-vnTable' of https://gitea.verdnatura.es/verdnatura/salix-front into 7406-workerFormation

This commit is contained in:
Alex Moreno 2024-06-14 11:35:53 +02:00
commit 6f723af338
2 changed files with 1 additions and 6 deletions

View File

@ -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() {

View File

@ -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;