Skip to content

Commit

Permalink
Merge pull request #582 from kongxiaojun/58/harmony-hybrid-3.6.29
Browse files Browse the repository at this point in the history
fix: 修复启动时如果传参则query参数会丢失
  • Loading branch information
handsomeliuyang authored Jun 4, 2024
2 parents 96a0939 + e4308e5 commit 898e61d
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ function getCustomLaunchInfo () {
return launchInfo
}

let launchOptions
export function initLaunchOptions (options = {}) {
Object.assign(options, getCustomLaunchInfo())
launchOptions = options
let launchOptions: Taro.getLaunchOptionsSync.LaunchOptions = {
path: '',
query: {},
scene: 0,
shareTicket: '',
referrerInfo: {}
};
export function initLaunchOptions(options = {}) {
Object.assign(launchOptions, getCustomLaunchInfo());
Object.assign(launchOptions, options);
}

/**
Expand Down

0 comments on commit 898e61d

Please sign in to comment.