fix:action.args为null时数据问题 (#5523)

This commit is contained in:
hsm-lv 2022-10-10 21:46:00 +08:00 committed by GitHub
parent f139f9f508
commit 5a2ef461c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ export class BroadcastAction implements RendererAction {
}
// 作为一个新的事件需要把广播动作的args参数追加到事件数据中
event.setData(createObject(event.data, action.args));
event.setData(createObject(event.data, action.args ?? {}));
// 直接触发对应的动作
return await dispatchEvent(