mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
修复表单项关联数组修改被改成对象的问题
This commit is contained in:
parent
451d3316b7
commit
30f720d24b
@ -182,6 +182,9 @@ export function setVariable(
|
||||
data = data[key] = {
|
||||
...data[key]
|
||||
};
|
||||
} else if (Array.isArray(data[key])) {
|
||||
data[key] = data[key].concat();
|
||||
data = data[key];
|
||||
} else if (data[key]) {
|
||||
// throw new Error(`目标路径不是纯对象,不能覆盖`);
|
||||
// 强行转成对象
|
||||
|
Loading…
Reference in New Issue
Block a user