From 239a6c51c05e334d353960fdca10c679f605b63c Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 26 Feb 2022 16:21:52 +0800 Subject: [PATCH] 检查更新的报警优化 --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 65bc235..8fdd2c1 100644 --- a/app.js +++ b/app.js @@ -777,7 +777,9 @@ App({ if (wx.canIUse('getUpdateManager')) { //创建 UpdateManager 实例 const updateManager = wx.getUpdateManager(); - console.log('是否进入模拟更新'); + if(!updateManager) { + return false; + } //检测版本更新 updateManager.onCheckForUpdate(function(res) { console.log('是否获取版本'); -- libgit2 0.21.4