chunk-85272794.20d8c8f3.js 2.2 KB

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