修复表单项关联数组修改被改成对象的问题

This commit is contained in:
2betop 2020-08-18 12:25:28 +08:00
parent 451d3316b7
commit 30f720d24b

View File

@ -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(`目标路径不是纯对象,不能覆盖`);
// 强行转成对象