From 1db764ebbed985a576775918328ad06df9a6468c Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Wed, 17 Jul 2019 17:09:22 +0800 Subject: [PATCH] =?UTF-8?q?dataMapping=20=E4=B8=8D=E8=A6=81=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E5=8E=9F=E5=A7=8B=E5=80=BC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tpl-builtin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tpl-builtin.ts b/src/utils/tpl-builtin.ts index d7e9d49fd..74cb8faed 100644 --- a/src/utils/tpl-builtin.ts +++ b/src/utils/tpl-builtin.ts @@ -340,7 +340,7 @@ export const resolveVariableAndFilter = ( let ret = resolveVariable(finalKey, data); return ret == null && !~originalKey.indexOf("default") - ? "" + ? ret : paths.reduce((input, filter) => { let params = filter .replace(/([^\\])\\([\:\\])/g, (_, affix, content) => `${affix}__${content === ':' ? 'colon' : 'slash'}__`)