fix(utils): <=条件编译出错

This commit is contained in:
roymondchen 2024-01-04 17:00:58 +08:00
parent 5a5288c9da
commit acab44aaa4

View File

@ -300,7 +300,7 @@ export const compiledCond = (op: string, fieldValue: any, value: any, range: num
case '<': case '<':
return fieldValue < value; return fieldValue < value;
case '<=': case '<=':
return fieldValue >= value; return fieldValue <= value;
case 'between': case 'between':
return range.length > 1 && fieldValue >= range[0] && fieldValue <= range[1]; return range.length > 1 && fieldValue >= range[0] && fieldValue <= range[1];
case 'not_between': case 'not_between':