提交 1b908ddd 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

fix(iOS): 修复类型报错

上级 b11b613e
......@@ -51,6 +51,7 @@ export function initLaunchOptions({
extend(enterOptions, launchOptions)
const app = getNativeApp()
// @ts-expect-error syntaxdoc
const schemaLink = app?.getLaunchOptionsSync?.() ?? {}
return extend({}, launchOptions, schemaLink)
}
......
......@@ -20,6 +20,7 @@ export const getLaunchOptionsSync = defineSyncApi<GetLaunchOptionsSync>(
const app = getNativeApp()
const baseInfo = getLaunchOptions()
// @ts-expect-error syntaxdoc
const schemaInfo = app?.getLaunchOptionsSync?.() ?? {}
return Object.assign({}, baseInfo, schemaInfo)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册