From 0cc15b1d78d571fb3308b922fe3b7329d388282a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Mon, 8 Jul 2024 19:30:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dapp=E7=AB=AFloadFontFa?= =?UTF-8?q?ce=E9=94=99=E8=AF=AF=E7=9A=84=E8=A7=A6=E5=8F=91=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=9B=9E=E8=B0=83=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-app-plus/src/service/api/ui/loadFontFace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-app-plus/src/service/api/ui/loadFontFace.ts b/packages/uni-app-plus/src/service/api/ui/loadFontFace.ts index 32f59e8cdc..7ff5b22403 100644 --- a/packages/uni-app-plus/src/service/api/ui/loadFontFace.ts +++ b/packages/uni-app-plus/src/service/api/ui/loadFontFace.ts @@ -15,7 +15,7 @@ export const loadFontFace = defineAsyncApi( options, pageId, (err: string) => { - if (err) { + if (typeof err === 'string') { reject(err) } else { resolve() -- GitLab