App.vue
@@ -58,7 +58,8 @@ updateFlag = !updateFlag updesc = res.data.android.desc } if (downUrl && updateFlag) { // if (downUrl && updateFlag) { if (updateFlag) { // uni.showModal({ // showCancel: false, // confirmText: '立即更新', @@ -70,6 +71,17 @@ // } // } // }) uni.showModal({ showCancel: false, confirmText: '确定', title: '版本更新提示!', content: updesc, success: res => { if (res.confirm) { } } }) } }) // #endif