default filter bug

This commit is contained in:
liaoxuezhi 2020-12-21 22:46:09 +08:00
parent da4aa7d8ea
commit 7656f6b32d

View File

@ -546,7 +546,9 @@ export const resolveVariableAndFilter = (
let prevConInputChanged = false; // 前一个类三元过滤器生效,则跳过后续类三元过滤器
return ret == null && !~paths.indexOf('default') && !~paths.indexOf('now')
return ret == null &&
!~originalKey.indexOf('default') &&
!~originalKey.indexOf('now')
? ret
: paths.reduce((input, filter) => {
let params = filter