From cdc872be3f6e7c3cf1f3a3b65023569bb6fa5e2d Mon Sep 17 00:00:00 2001 From: * <*> Date: Mon, 16 Jan 2023 20:04:55 +0800 Subject: [PATCH] Match-id-a889c6b66e320203447be4d1bcf1011b502b27c4 --- libs/horizon/index.ts | 5 +++++ 1 file changed, 5 insertions(+) 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 {