chunk-c3a37878.daf63053.js 2.4 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c3a37878"],{1786:function(e,t,a){},"4d78":function(e,t,a){"use strict";a("1786")},a358:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var n=a("b775"),c={openDir:"/api/v1/example/openLocalDir",uploadFile:"/api/v1/example/uploadFile",executeJS:"/api/v1/example/executeJS",setShortcut:"/api/v1/example/setShortcut",autoLaunchEnable:"/api/v1/example/autoLaunchEnable",autoLaunchDisable:"/api/v1/example/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/example/autoLaunchIsEnabled",openSoftware:"/api/v1/example/openSoftware",selectFileDir:"/api/v1/example/selectFileDir"};function u(e,t){return Object(n["b"])({url:c[e],method:"post",data:t})}},cfe2:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app-demo-system-launch"}},[a("div",{staticClass:"one-block-2"},[a("a-list",{staticClass:"set-auto",attrs:{itemLayout:"horizontal"}},[a("a-list-item",{staticStyle:{"text-align":"left"},scopedSlots:e._u([{key:"actions",fn:function(){return[a("a-switch",{attrs:{checkedChildren:"开",unCheckedChildren:"关"},on:{change:function(t){return e.autoLaunchChange(e.autoLaunchChecked)}},model:{value:e.autoLaunchChecked,callback:function(t){e.autoLaunchChecked=t},expression:"autoLaunchChecked"}})]},proxy:!0}])},[a("a-list-item-meta",{scopedSlots:e._u([{key:"title",fn:function(){return[a("a",[e._v("启动")])]},proxy:!0},{key:"description",fn:function(){return[a("span",[e._v(" 开机自动启动 ")])]},proxy:!0}])})],1)],1)],1)])},c=[],u=a("a358"),o={data:function(){return{autoLaunchChecked:!1}},mounted:function(){this.autoLaunchInit()},methods:{autoLaunchInit:function(){var e=this;Object(u["a"])("autoLaunchIsEnabled",{}).then((function(t){if(0!==t.code)return!1;e.autoLaunchChecked=t.data.isEnabled})).catch((function(e){console.log("err:",e)}))},autoLaunchChange:function(e){var t=this,a={checkStatus:e};e?Object(u["a"])("autoLaunchEnable",a).then((function(e){if(0!==e.code)return!1;t.autoLaunchChecked=e.data.isEnabled})).catch((function(e){console.log("err:",e)})):Object(u["a"])("autoLaunchDisable",a).then((function(e){if(0!==e.code)return!1;t.autoLaunchChecked=e.data.isEnabled})).catch((function(e){console.log("err:",e)}))}}},i=o,l=(a("4d78"),a("2877")),s=Object(l["a"])(i,n,c,!1,null,"3659912d",null);t["default"]=s.exports}}]);
  2. //# sourceMappingURL=chunk-c3a37878.daf63053.js.map