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;
|
||||
await arrayData.addFilter({ params });
|
||||
if (!props.showAll && !Object.values(userParams.value).find((param) => param)) {
|
||||
store.data = [];
|
||||
}
|
||||
if (!props.showAll && !Object.values(store.userParams).length) store.data = [];
|
||||
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
||||
|
@ -61,8 +60,7 @@ async function reload() {
|
|||
isLoading.value = true;
|
||||
|
||||
await arrayData.fetch({ append: false });
|
||||
if (!props.showAll && !Object.values(userParams.value).find((param) => param))
|
||||
store.data = [];
|
||||
if (!props.showAll && !Object.values(store.userParams).length) store.data = [];
|
||||
isLoading.value = false;
|
||||
emit('refresh');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue