forked from verdnatura/salix-front
ref #5417 search and refresh fixed
This commit is contained in:
parent
d9b4ee006d
commit
6d116b9798
|
@ -51,9 +51,8 @@ async function search() {
|
||||||
}
|
}
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
await arrayData.addFilter({ params });
|
await arrayData.addFilter({ params });
|
||||||
if (!props.showAll && !Object.values(userParams.value).find((param) => param)) {
|
if (!props.showAll && !Object.values(store.userParams).length) store.data = [];
|
||||||
store.data = [];
|
|
||||||
}
|
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,8 +60,7 @@ async function reload() {
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
|
|
||||||
await arrayData.fetch({ append: false });
|
await arrayData.fetch({ append: false });
|
||||||
if (!props.showAll && !Object.values(userParams.value).find((param) => param))
|
if (!props.showAll && !Object.values(store.userParams).length) store.data = [];
|
||||||
store.data = [];
|
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
emit('refresh');
|
emit('refresh');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue