diff --git a/libs/horizon/index.ts b/libs/horizon/index.ts index 59045fbb..f71aa9e6 100644 --- a/libs/horizon/index.ts +++ b/libs/horizon/index.ts @@ -65,6 +65,11 @@ const act = fun => { asyncUpdates(fun); callRenderQueueImmediate(); runAsyncEffects(); + + // 兼容返回Promise + return new Promise((resolve, reject) => { + resolve(null); + }); }; import {