mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
fix(utils): 编译条件函数异常兼容
This commit is contained in:
parent
502e59cfd7
commit
7a617d4a17
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user