(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-065e2008"],{"3db9":function(e,t,o){"use strict";o("7092")},7092:function(e,t,o){},"8f7f":function(e,t,o){"use strict";o.r(t);var r=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)])},n=[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. 下载进度 ")])])}],l=o("a358"),c={data(){return{status:0,progress:"",percentNumber:0}},mounted(){this.init()},methods:{init(){const e=this;this.$ipc.removeAllListeners(l["c"].appUpdater),this.$ipc.on(l["c"].appUpdater,(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(){this.$ipcInvoke(l["a"].checkForUpdater).then(e=>{console.log(e)})},download(){1===this.status?this.$ipcInvoke(l["a"].downloadApp).then(e=>{console.log(e)}):this.$message.info("没有可用版本")}}},a=c,s=(o("3db9"),o("2877")),p=Object(s["a"])(a,r,n,!1,null,"489510a6",null);t["default"]=p.exports},a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return s}));var r=o("cff8"),n=o.n(r),l=o("b775");const c={test:"controller.example.test",messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",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",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile",checkHttpServer:"controller.example.checkHttpServer",doHttpRequest:"controller.example.doHttpRequest",doSocketRequest:"controller.example.doSocketRequest",ipcInvokeMsg:"controller.example.ipcInvokeMsg",ipcSendSyncMsg:"controller.example.ipcSendSyncMsg",ipcSendMsg:"controller.example.ipcSendMsg",hello:"controller.example.hello"},a={appUpdater:"app.updater"},s=(e,t)=>{const o=n.a.get("httpServiceConfig"),r=o.server||"http://127.0.0.1:7071";let c=e.split(".").join("/");return c=r+"/"+c,console.log("url:",c),Object(l["b"])({url:c,method:"post",data:t,params:{},timeout:6e4})}}}]);
//# sourceMappingURL=chunk-065e2008.5f43bb45.js.map