chore: refs #7323 improve vnselect
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
c47635fcf2
commit
e1e768948e
|
@ -161,7 +161,7 @@ async function fetchFilter(val) {
|
||||||
if ($props.filterOptions.length) {
|
if ($props.filterOptions.length) {
|
||||||
defaultWhere = $props.filterOptions.reduce((obj, prop) => {
|
defaultWhere = $props.filterOptions.reduce((obj, prop) => {
|
||||||
if (!obj.or) obj.or = [];
|
if (!obj.or) obj.or = [];
|
||||||
obj.or.push({ [prop]: { like: `%${val}%` } });
|
obj.or.push({ [prop]: $props.useLike ? { like: `%${val}%` } : val });
|
||||||
return obj;
|
return obj;
|
||||||
}, {});
|
}, {});
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue