(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b0eff956"],{a358:function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return s}));var r=o("cff8"),n=o.n(r),l=o("b775");const c={test:"controller.example.test",messageShow:"controller.example.messageShow",messageShowConfirm:"controller.example.messageShowConfirm",selectFolder:"controller.example.selectFolder",openDirectory:"controller.example.openDirectory",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",checkHttpServer:"controller.example.checkHttpServer",doHttpRequest:"controller.example.doHttpRequest",doSocketRequest:"controller.example.doSocketRequest",ipcInvokeMsg:"controller.example.ipcInvokeMsg",ipcSendSyncMsg:"controller.example.ipcSendSyncMsg",ipcSendMsg:"controller.example.ipcSendMsg",hello:"controller.example.hello"},a={appUpdater:"app.updater"},s=(e,t)=>{const o=n.a.get("httpServiceConfig"),r=o.server||"http://127.0.0.1:7071";let c=e.split(".").join("/");return c=r+"/"+c,console.log("url:",c),Object(l["b"])({url:c,method:"post",data:t,params:{},timeout:6e4})}},bb01:function(e,t,o){},bb90:function(e,t,o){"use strict";o("bb01")},db5a:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app-base-screen"}},[e._m(0),o("div",{staticClass:"one-block-2"},[o("a-space",[o("a-button",{on:{click:function(t){return e.getTheme()}}},[e._v("获取模式")])],1),o("span",[e._v(" 结果："+e._s(e.currentThemeMode)+" ")])],1),o("div",{staticClass:"one-block-1"},[e._v(" 2. 设置主题模式（请自行实现前端UI效果） ")]),o("div",{staticClass:"one-block-2"},[o("a-radio-group",{on:{change:e.setTheme},model:{value:e.currentThemeMode,callback:function(t){e.currentThemeMode=t},expression:"currentThemeMode"}},[o("a-radio",{attrs:{value:e.themeList[0]}},[e._v(" "+e._s(e.themeList[0])+" ")]),o("a-radio",{attrs:{value:e.themeList[1]}},[e._v(" "+e._s(e.themeList[1])+" ")]),o("a-radio",{attrs:{value:e.themeList[2]}},[e._v(" "+e._s(e.themeList[2])+" ")])],1)],1)])},n=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"one-block-1"},[o("span",[e._v(" 1. 系统主题模式 ")])])}],l=o("a358"),c={data(){return{currentThemeMode:"",themeList:["system","light","dark"]}},mounted(){},methods:{setTheme(e){const t=this;this.currentThemeMode=e.target.value,console.log("setTheme currentThemeMode:",this.currentThemeMode),this.$ipcInvoke(l["a"].setTheme,this.currentThemeMode).then(e=>{console.log("result:",e),t.currentThemeMode=e})},getTheme(){const e=this;this.$ipcInvoke(l["a"].getTheme).then(t=>{console.log("result:",t),e.currentThemeMode=t})}}},a=c,s=(o("bb90"),o("2877")),i=Object(s["a"])(a,r,n,!1,null,"c45f31c2",null);t["default"]=i.exports}}]);
//# sourceMappingURL=chunk-b0eff956.13c1d72f.js.map