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