fix(core): 保证传参行为一致

This commit is contained in:
i33 2022-09-21 16:01:31 +08:00 committed by jia000
parent a96d547c20
commit b0419cdbaf

View File

@ -206,7 +206,7 @@ class App extends EventEmitter {
if (typeof node.data === 'undefined') {
return super.emit(name, node, ...args);
}
return super.emit(`${String(name)}_${node.data.id}`, ...args);
return super.emit(`${String(name)}_${node.data.id}`, node, ...args);
}
public eventHandler(eventConfig: EventItemConfig, fromCpt: any, args: any[]) {