chunk-85272794.a366dbbc.js 2.4 KB

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