2 lines
386 B
JavaScript
Raw Permalink Normal View History

2025-12-15 18:27:46 +08:00
"use strict";const e=require("../vendor.js");exports.CheckUpdate=function(){const n=e.index.getUpdateManager();n.onCheckForUpdate((function(e){console.log(e.hasUpdate)})),n.onUpdateReady((function(){e.index.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(e){e.confirm&&n.applyUpdate()}})})),n.onUpdateFailed((function(){}))};