fix(VnSearchbar): hotFix rollback
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
36c447772f
commit
9e8c967567
|
@ -98,15 +98,11 @@ onMounted(() => {
|
||||||
async function search() {
|
async function search() {
|
||||||
const staticParams = Object.entries(store.userParams);
|
const staticParams = Object.entries(store.userParams);
|
||||||
arrayData.reset(['skip', 'page']);
|
arrayData.reset(['skip', 'page']);
|
||||||
let filter = {
|
|
||||||
params: {
|
const filter = {
|
||||||
search: searchText.value,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
if (!searchText.value) {
|
|
||||||
filter = {
|
|
||||||
params: {
|
params: {
|
||||||
...Object.fromEntries(staticParams),
|
...Object.fromEntries(staticParams),
|
||||||
|
search: searchText.value,
|
||||||
},
|
},
|
||||||
...{ filter: props.filter },
|
...{ filter: props.filter },
|
||||||
};
|
};
|
||||||
|
@ -117,7 +113,6 @@ async function search() {
|
||||||
};
|
};
|
||||||
delete filter.params.search;
|
delete filter.params.search;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
await arrayData.applyFilter(filter);
|
await arrayData.applyFilter(filter);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue