feat(micro-app): 添加额外的事件发射器方法以支持动态事件处理
This commit is contained in:
@@ -358,6 +358,14 @@ export default {
|
||||
}
|
||||
return null;
|
||||
},
|
||||
extraCallEmitter: async (...args) => {
|
||||
if (args.length > 0 && typeof args[0] === 'string') {
|
||||
const actionName = args[0];
|
||||
const payload = args.slice(1);
|
||||
emitter.emit(actionName, ...payload);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user