forked from verdnatura/salix-front
chore: refs #7323 improve vnselect
This commit is contained in:
parent
c47635fcf2
commit
e1e768948e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue