提交 ded6c161 编写于 作者: F FateRiddle

校验用深的

上级 56cec615
...@@ -55,7 +55,7 @@ const RenderList = ({ ...@@ -55,7 +55,7 @@ const RenderList = ({
newItem, newItem,
...displayList.slice(idx), ...displayList.slice(idx),
]; ];
onItemChange(dataPath, JSON.parse(JSON.stringify(newList))); onItemChange(dataPath, JSON.parse(JSON.stringify(newList)));
}; };
const deleteItem = idx => { const deleteItem = idx => {
......
...@@ -24,7 +24,7 @@ export const validateAll = ({ ...@@ -24,7 +24,7 @@ export const validateAll = ({
}) => { }) => {
// Check: 添加了这个逻辑,不知道性能是否会变坏 // Check: 添加了这个逻辑,不知道性能是否会变坏
let _schema = schema; let _schema = schema;
if (schemaContainsExpression(schema)) { if (schemaContainsExpression(schema, false)) {
_schema = parseAllExpression(schema, formData, '#'); _schema = parseAllExpression(schema, formData, '#');
} }
if (Object.keys(_schema).length === 0) return Promise.resolve(); if (Object.keys(_schema).length === 0) return Promise.resolve();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册