From eaa16d125ec9847e22b207e765b06c779bf9d1f4 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 19 Jul 2022 11:26:02 +0800 Subject: [PATCH] fix(app): createPushMessage --- src/core/helpers/promise.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/helpers/promise.js b/src/core/helpers/promise.js index 009204d61..e833f100e 100644 --- a/src/core/helpers/promise.js +++ b/src/core/helpers/promise.js @@ -18,7 +18,7 @@ const CONTEXT_API_RE_EXC = ['createBLEConnection'] const TASK_APIS = ['request', 'downloadFile', 'uploadFile', 'connectSocket'] // 同步例外情况 -const ASYNC_API = ['createBLEConnection'] +const ASYNC_API = ['createBLEConnection', 'createPushMessage'] const CALLBACK_API_RE = /^on|^off/ @@ -83,4 +83,4 @@ export function promisify (name, api) { }), ...params) }))) } -} +} -- GitLab