fix: 修复动作配置会删除 preventDefault 属性的问题

This commit is contained in:
2betop 2024-11-22 16:52:57 +08:00
parent 3d07dd2870
commit 6774bf2f6d

View File

@ -3312,7 +3312,7 @@ export const getEventControlConfig = (
} }
// 不加回来可能数据会丢失 // 不加回来可能数据会丢失
['drawer', 'dialog', 'args'].forEach(key => { ['drawer', 'dialog', 'args', 'preventDefault'].forEach(key => {
action[key] = action[key] ?? actionData?.[key]; action[key] = action[key] ?? actionData?.[key];
}); });