feat(micro-app): 添加额外的事件发射器方法以支持动态事件处理

This commit is contained in:
kuaifan 2026-01-19 09:19:27 +08:00
parent ba65378c6b
commit 654793156d

View File

@ -358,6 +358,14 @@ export default {
} }
return null; 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;
},
}, },
} }
}, },