diff --git a/packages/uni-app-plus/src/service/framework/app/utils.ts b/packages/uni-app-plus/src/service/framework/app/utils.ts index 09d2db185bf6cb6faf9649213b1d1c0419291cea..d0b21409559827ecbdfcc8e59dabd3e64b8f0969 100644 --- a/packages/uni-app-plus/src/service/framework/app/utils.ts +++ b/packages/uni-app-plus/src/service/framework/app/utils.ts @@ -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) } diff --git a/packages/uni-app-plus/src/x/api/base/getLaunchOptionsSync.ts b/packages/uni-app-plus/src/x/api/base/getLaunchOptionsSync.ts index 18d26ebfa60aba1062c8211000b28531c63d5b83..ee61f6fb29f8b9f2acf50af5ecfbe2109483bbb9 100644 --- a/packages/uni-app-plus/src/x/api/base/getLaunchOptionsSync.ts +++ b/packages/uni-app-plus/src/x/api/base/getLaunchOptionsSync.ts @@ -20,6 +20,7 @@ export const getLaunchOptionsSync = defineSyncApi( const app = getNativeApp() const baseInfo = getLaunchOptions() + // @ts-expect-error syntaxdoc const schemaInfo = app?.getLaunchOptionsSync?.() ?? {} return Object.assign({}, baseInfo, schemaInfo) }