修复表单项关联数组修改被改成对象的问题
This commit is contained in:
parent
5bba0c9766
commit
b6afea8162
|
@ -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