chore(lark-msg): genCard改为注入全量数据
All checks were successful
/ release (push) Successful in 23s

This commit is contained in:
zhaoyingbo 2024-10-15 03:34:20 +00:00
parent 95a9b40939
commit cd4fbc1e03

View File

@ -101,9 +101,9 @@ class LarkCard<
return obj.map(traverseAndReplace)
} else if (_.isObject(obj)) {
// 给 value 字段注入公共变量
if ((obj as any).value && variables.commonValue) {
if ((obj as any).value) {
;(obj as any).value = {
...variables.commonValue,
...variables,
...((obj as any).value || {}),
}
}