fix(filter): fix operatror

This commit is contained in:
Zeke Zhang 2023-12-19 15:50:53 +08:00
parent 2808440426
commit 24446166db

View File

@ -84,7 +84,19 @@ export const transformToFilter = (
values = flatten(values, {
breakOn({ value, path }) {
// 下面操作符的值是一个数组,需要特殊处理
if (['$dateBetween', '$in'].includes(operators[path])) {
if (
[
'$match',
'$notMatch',
'$anyOf',
'$noneOf',
'$childIn',
'$childNotIn',
'$dateBetween',
'$in',
'$notIn',
].includes(operators[path])
) {
return true;
}