dataMapping 不要改变原始值类型

This commit is contained in:
liaoxuezhi 2019-07-17 17:09:22 +08:00
parent e6a14f0d61
commit 1db764ebbe

View File

@ -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'}__`)