Skip to content

Commit

Permalink
fix(core): 保证传参行为一致
Browse files Browse the repository at this point in the history
  • Loading branch information
isensen authored and jia000 committed Sep 22, 2022
1 parent a96d547 commit b0419cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) {
Expand Down

0 comments on commit b0419cd

Please sign in to comment.