fix: refs #6464 fix error isLoading
This commit is contained in:
parent
4b2d977542
commit
20ae555e14
|
@ -84,6 +84,7 @@ watch(
|
|||
|
||||
const isLoading = ref(false);
|
||||
async function search() {
|
||||
try {
|
||||
store.filter.where = {};
|
||||
isLoading.value = true;
|
||||
const params = { ...userParams.value };
|
||||
|
@ -95,9 +96,11 @@ async function search() {
|
|||
|
||||
if (!props.showAll && !Object.values(params).length) store.data = [];
|
||||
|
||||
isLoading.value = false;
|
||||
emit('search');
|
||||
if (props.redirect) navigate(store.data, {});
|
||||
} finally {
|
||||
isLoading.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
async function reload() {
|
||||
|
|
Loading…
Reference in New Issue