Commit d0df0798 authored by youjie's avatar youjie

no message

parent 181a7a72
...@@ -5,7 +5,6 @@ export let VersionUpdate = () =>{ ...@@ -5,7 +5,6 @@ export let VersionUpdate = () =>{
const updateManager = uni.getUpdateManager() const updateManager = uni.getUpdateManager()
// 向小程序后台请求完新版本信息 // 向小程序后台请求完新版本信息
updateManager.onCheckForUpdate(function(res) { updateManager.onCheckForUpdate(function(res) {
console.log(res.hasUpdate);
if (res.hasUpdate) { if (res.hasUpdate) {
//小程序有新版本,静默下载新版本,新版本下载完成 //小程序有新版本,静默下载新版本,新版本下载完成
updateManager.onUpdateReady(function() { updateManager.onUpdateReady(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment