We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01aa6a commit 3a6c174Copy full SHA for 3a6c174
packages/uni-app-plus/src/x/framework/app/initAppLaunch.ts
@@ -24,8 +24,9 @@ export function initAppLaunch(appVm: ComponentPublicInstance) {
24
const schemaLink = app.getLaunchOptionsSync()
25
26
const launchOption = extend({}, args, {
27
- appScheme: schemaLink.appScheme.length === 0 ? null : schemaLink.appScheme,
28
- appLink: schemaLink.appLink.length === 0 ? null : schemaLink.appLink,
+ // TODO 确认类型appScheme的类型,目前会出现undefined
+ appScheme: !schemaLink.appScheme ? null : schemaLink.appScheme,
29
+ appLink: !schemaLink.appLink ? null : schemaLink.appLink,
30
})
31
32
// onLaunchOption
0 commit comments