| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b8ab1f0c"],{3464:function(e,o,t){},"8a01":function(e,o,t){"use strict";t.r(o);var r=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{attrs:{id:"app-base-powermonitor"}},[e._m(0),t("div",{staticClass:"one-block-2"},[t("a-space",[t("p",[e._v("当前状态:"+e._s(e.currentStatus))])]),t("p",[e._v("* 拔掉电源,使用电池供电")]),t("p",[e._v("* 接入电源")]),t("p",[e._v("* 锁屏")]),t("p",[e._v("* 解锁")])],1)])},n=[function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"one-block-1"},[t("span",[e._v(" 1. 监控电源状态 ")])])}],a=(t("d3b7"),t("a358")),l={data:function(){return{currentStatus:"无"}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.$ipc.removeAllListeners(a["a"].initPowerMonitor),e.$ipc.on(a["a"].initPowerMonitor,(function(o,t){"[object Object]"==Object.prototype.toString.call(t)&&(e.currentStatus=t.msg,e.$message.info(t.msg))})),this.$ipc.send(a["a"].initPowerMonitor,"")}}},i=l,c=(t("dff4"),t("2877")),p=Object(c["a"])(i,r,n,!1,null,"7dfd9413",null);o["default"]=p.exports},a358:function(e,o,t){"use strict";t.d(o,"b",(function(){return i})),t.d(o,"a",(function(){return a})),t.d(o,"c",(function(){return l}));var r=t("b775"),n={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",dbOperation:"controller.example.dbOperation",uploadFile:"controller.example.uploadFile"},l={appUpdater:"app.updater"},i=function(e,o){return Object(r["b"])({url:n[e],method:"post",data:o})}},dff4:function(e,o,t){"use strict";t("3464")}}]);
- //# sourceMappingURL=chunk-b8ab1f0c.5021379a.js.map
|