0
0
Fork 0

chore: refs #7323 improve vnselect

This commit is contained in:
Jorge Penadés 2024-08-26 13:44:35 +02:00
parent c47635fcf2
commit e1e768948e
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ async function fetchFilter(val) {
if ($props.filterOptions.length) {
defaultWhere = $props.filterOptions.reduce((obj, prop) => {
if (!obj.or) obj.or = [];
obj.or.push({ [prop]: { like: `%${val}%` } });
obj.or.push({ [prop]: $props.useLike ? { like: `%${val}%` } : val });
return obj;
}, {});
} else