修改忽略入参

This commit is contained in:
ascend13 2023-10-13 11:19:21 +08:00
parent d6ff427429
commit 5ecca6f118

View File

@ -906,7 +906,7 @@ export function JSONTraverse(
) {
Object.keys(json).forEach(key => {
const value: any = json[key];
if (ignore && ignore(value, key)) {
if (ignore?.(value, key)) {
return;
}
if (isPlainObject(value) || Array.isArray(value)) {
@ -1388,8 +1388,7 @@ export const getDialogActions = (
}
}
},
(value, key) =>
key === '__cmptTreeSource' || key === '__superCmptTreeSource'
(value, key) => key.toString().startsWith('__')
);
return dialogActions;
};