提交 0cc15b1d 编写于 作者: 雪洛's avatar 雪洛

fix: 修复app端loadFontFace错误的触发失败回调的Bug

上级 e647165f
...@@ -15,7 +15,7 @@ export const loadFontFace = defineAsyncApi<API_TYPE_LOAD_FONT_FACE>( ...@@ -15,7 +15,7 @@ export const loadFontFace = defineAsyncApi<API_TYPE_LOAD_FONT_FACE>(
options, options,
pageId, pageId,
(err: string) => { (err: string) => {
if (err) { if (typeof err === 'string') {
reject(err) reject(err)
} else { } else {
resolve() resolve()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册