diff --git a/App.vue b/App.vue index b6db6c5..fd7ad38 100644 --- a/App.vue +++ b/App.vue @@ -24,25 +24,25 @@ export default { //#ifdef APP-PLUS checkUpdate().then((version) => { let curVersion = plus.runtime.version - // if (version != curVersion) { - // let client = uni.getSystemInfoSync().platform - // if (client === 'ios') { - // uni.showModal({ - // title: '更新提示', - // content: '有新的版本更新,请前往App Store更新' - // }) - // } else { - // uni.showModal({ - // title: '更新提示', - // content: '有新版本,请前往更新', - // success: (res) => { - // if (res.confirm) { - // // plus.runtime.openURL(`https://www.pgyer.com/ST8i`) - // } - // } - // }) - // } - // } + if (version != curVersion) { + let client = uni.getSystemInfoSync().platform + if (client === 'ios') { + uni.showModal({ + title: '更新提示', + content: '有新的版本更新,请前往App Store更新' + }) + } else { + uni.showModal({ + title: '更新提示', + content: '有新版本,请前往更新', + success: (res) => { + if (res.confirm) { + plus.runtime.openURL(`https://www.pgyer.com/ClU9`) + } + } + }) + } + } }) //#endif },