Merge pull request #11225 from allenve/fix-addBroadcast-bind
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
gh-pages / build (20.x) (push) Waiting to run

fix: 广播事件绑定this指向
This commit is contained in:
Allen 2024-11-19 16:55:12 +08:00 committed by GitHub
commit 62f6bfbc94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3011,8 +3011,8 @@ export const getEventControlConfig = (
commonActions,
globalEvents,
owner: '',
addBroadcast: manager?.addBroadcast,
removeBroadcast: manager?.removeBroadcast,
addBroadcast: manager?.addBroadcast.bind(manager),
removeBroadcast: manager?.removeBroadcast.bind(manager),
allComponents: allComponents,
getContextSchemas: async (id?: string, withoutSuper?: boolean) => {
const dataSchema = await manager.getContextSchemas(