chengjie пре 5 година
родитељ
комит
0e425ff214
1 измењених фајлова са 1 додато и 11 уклоњено
  1. 1 11
      pages/index/index.js

+ 1 - 11
pages/index/index.js

@@ -246,17 +246,7 @@ Page({
246 246
     });
247 247
 
248 248
     updateManager.onUpdateReady(function () {
249
-      wx.showModal({
250
-        title: '更新提示',
251
-        content: '新版本已经准备好,是否重启应用?',
252
-        success: function (res) {
253
-          if (res.confirm) {
254
-            // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
255
-            updateManager.applyUpdate()
256
-          }
257
-        }
258
-      });
259
-
249
+      updateManager.applyUpdate();
260 250
     });
261 251
   },
262 252
   onShareAppMessage: function () {