fix: search bar

This commit is contained in:
Pablo Natek 2024-04-25 09:57:04 +02:00
parent 663c093a00
commit 897ddc44fe
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ function navigate(id) {
router.push({ path: `/agency/${id}` });
}
function exprBuilder(param, value) {
if (!value) return;
console.log('value: ', value);
if (param !== 'search') return;
if (!isNaN(value)) return { id: value };

View File

@ -32,7 +32,7 @@ watch(
<VnSearchbar
:info="t('Agency.searchBar.info')"
:label="t('Agency.searchBar.label')"
data-key="Agency"
data-key="AgencyList"
/>
</Teleport>
<QDrawer v-model="stateStore.leftDrawer" show-if-above :width="256">