From 2aaad576fd2eabefa8eccee6847c0198cf31772a Mon Sep 17 00:00:00 2001 From: * <*> Date: Mon, 16 Jan 2023 20:29:01 +0800 Subject: [PATCH] Match-id-13432ea7f850d2d66d77c7fc83bbaf071859351f --- libs/horizon/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/horizon/index.ts b/libs/horizon/index.ts index f71aa9e6..737861a7 100644 --- a/libs/horizon/index.ts +++ b/libs/horizon/index.ts @@ -67,9 +67,7 @@ const act = fun => { runAsyncEffects(); // 兼容返回Promise - return new Promise((resolve, reject) => { - resolve(null); - }); + return Promise.resolve(); }; import {