| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26360310"],{5756:function(e,t,o){"use strict";o("e3e4")},"8f7f":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-demo-window"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.checkForUpdater()}}},[e._v("检查更新")]),o("a-button",{on:{click:function(t){return e.download()}}},[e._v("下载并安装")])],1)],1),e._m(1),o("div",{staticClass:"one-block-2"},[o("a-progress",{attrs:{percent:e.percentNumber,status:"active"}}),o("a-space",[e._v(" "+e._s(e.progress)+" ")])],1)])},r=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 自动更新 ")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 2. 下载进度 ")])])}],a=o("a358"),l={data:function(){return{status:0,progress:"",percentNumber:0}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(a["c"].appUpdater),this.$ipc.on(a["c"].appUpdater,(function(t,o){o=JSON.parse(o),e.status=o.status,3==o.status?(e.progress=o.desc,e.percentNumber=o.percentNumber):e.$message.info(o.desc)}))},checkForUpdater:function(){this.$ipcCall(a["a"].checkForUpdater).then((function(e){console.log(e)}))},download:function(){1===this.status?this.$ipcCall(a["a"].downloadApp).then((function(e){console.log(e)})):this.$message.info("没有可用版本")}}},c=l,s=(o("5756"),o("2877")),i=Object(s["a"])(c,n,r,!1,null,"cae527a6",null);t["default"]=i.exports},a358:function(e,t,o){"use strict";o.d(t,"b",(function(){return c})),o.d(t,"a",(function(){return a})),o.d(t,"c",(function(){return l}));var n=o("b775"),r={uploadFile:"/api/example/uploadFile",openSoftware:"/api/example/openSoftware",messageShow:"/api/example/messageShow",messageShowConfirm:"/api/example/messageShowConfirm",dbOperation:"/api/example/dbOperation",test1:"/api/example/test1"},a={messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",socketMessageStart:"controller.example.socketMessageStart",socketMessageStop:"controller.example.socketMessageStop",hello:"controller.example.hello",executeJS:"controller.example.executeJS",loadViewContent:"controller.example.loadViewContent",removeViewContent:"controller.example.removeViewContent",createWindow:"controller.example.createWindow",sendNotification:"controller.example.sendNotification",initPowerMonitor:"controller.example.initPowerMonitor",getScreen:"controller.example.getScreen",openSoftware:"controller.example.openSoftware",autoLaunch:"controller.example.autoLaunch",setTheme:"controller.example.setTheme",getTheme:"controller.example.getTheme",checkForUpdater:"controller.example.checkForUpdater",downloadApp:"controller.example.downloadApp"},l={appUpdater:"app.updater"},c=function(e,t){return Object(n["b"])({url:r[e],method:"post",data:t})}},e3e4:function(e,t,o){}}]);
- //# sourceMappingURL=chunk-26360310.90f0183a.js.map
|