mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +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;
|
if (fieldValue >= range[0] && fieldValue <= range[1]) return false;
|
||||||
break;
|
break;
|
||||||
case 'include':
|
case 'include':
|
||||||
if (!fieldValue.includes(value)) return false;
|
if (typeof fieldValue !== 'undefined' && !fieldValue.includes?.(value)) return false;
|
||||||
break;
|
break;
|
||||||
case 'not_include':
|
case 'not_include':
|
||||||
if (fieldValue.includes(value)) return false;
|
if (typeof fieldValue !== 'undefined' && fieldValue.includes?.(value)) return false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user