diff --git a/packages/core/client/src/schema-component/common/utils/uitls.tsx b/packages/core/client/src/schema-component/common/utils/uitls.tsx index 08de6e497..392ef7c08 100644 --- a/packages/core/client/src/schema-component/common/utils/uitls.tsx +++ b/packages/core/client/src/schema-component/common/utils/uitls.tsx @@ -122,7 +122,8 @@ function getAllKeys(obj) { return keys; } -export const conditionAnalyse = (rules, values) => { +export const conditionAnalyse = (rules, scope) => { + const values = { ...scope, now: new Date() }; const type = Object.keys(rules)[0] || '$and'; const conditions = rules[type]; const results = conditions.map((c) => {