mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[bugfix] Locale: can not modify functional message (#3498)
This commit is contained in:
@@ -11,7 +11,7 @@ function assignKey(to: ObjectIndex, from: ObjectIndex, key: string) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hasOwnProperty.call(to, key) || !isObj(val)) {
|
||||
if (!hasOwnProperty.call(to, key) || !isObj(val) || typeof val === 'function') {
|
||||
to[key] = val;
|
||||
} else {
|
||||
to[key] = deepAssign(Object(to[key]), from[key]);
|
||||
|
Reference in New Issue
Block a user