From 5f036c11ae5ce17d8dc02301d642468c98bd05ed Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 12 Aug 2019 18:20:31 +0800 Subject: [PATCH] =?UTF-8?q?xxxOn=20=E9=99=90=E5=88=B6=E4=B8=BA=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B=E6=97=B6=E6=89=8D=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/filter-schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/filter-schema.ts b/src/utils/filter-schema.ts index c0602ad1..98c24e6c 100644 --- a/src/utils/filter-schema.ts +++ b/src/utils/filter-schema.ts @@ -31,7 +31,7 @@ export default function getExprProperties(schema:PlainObject, data:object = {}, let parts = /^(.*)(On|Expr)$/.exec(key); let value:any = schema[key]; - if (value && parts && (parts[2] === 'On' || parts[2] === 'Expr')) { + if (value && typeof value === 'string' && parts && (parts[2] === 'On' || parts[2] === 'Expr')) { key = parts[1]; if (parts[2] === 'On' || parts[2] === 'Expr') {