Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchentong committed Jul 25, 2024
2 parents 2d1c1b8 + 04cbc94 commit c8478e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/launch/app.launch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function checkAppUpdate() {
// #ifdef MP-WEIXIN
const updateManager = uni.getUpdateManager()

updateManager.onUpdateReady(() => {
Expand All @@ -22,6 +23,7 @@ function checkAppUpdate() {
})
}
})
// #endif
}

function setupAppShare() {
Expand All @@ -41,6 +43,8 @@ function setupAppShare() {
}

export function appLaunch() {
// #ifdef MP-WEIXIN
checkAppUpdate()
setupAppShare()
// #endif
}

0 comments on commit c8478e5

Please sign in to comment.