Skip to content

Commit

Permalink
fix(utils): 编译条件函数异常兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Sep 14, 2023
1 parent 502e59c commit 7a617d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ export const compiledCond = (op: string, fieldValue: any, value: any, range: [nu
if (fieldValue >= range[0] && fieldValue <= range[1]) return false;
break;
case 'include':
if (!fieldValue.includes(value)) return false;
if (typeof fieldValue !== 'undefined' && !fieldValue.includes?.(value)) return false;
break;
case 'not_include':
if (fieldValue.includes(value)) return false;
if (typeof fieldValue !== 'undefined' && fieldValue.includes?.(value)) return false;
break;
default:
break;
Expand Down

0 comments on commit 7a617d4

Please sign in to comment.