| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08412ace"],{5281:function(e,t,n){},"9bad":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app-demo-socket-ipc"}},[e._m(0),n("div",{staticClass:"one-block-2"},[n("a-list",{attrs:{bordered:""}},[n("a-input-search",{on:{search:e.helloHandle},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}},[n("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1),e._m(1),n("div",{staticClass:"one-block-2"},[n("a-list",{attrs:{bordered:""}},[n("a-input-search",{on:{search:e.executeJSHandle},model:{value:e.content2,callback:function(t){e.content2=t},expression:"content2"}},[n("a-button",{attrs:{slot:"enterButton"},slot:"enterButton"},[e._v(" send ")])],1)],1)],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 1. 渲染进程与主进程IPC通信 ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"one-block-1"},[n("span",[e._v(" 2. 主进程API执行网页函数 ")])])}],c=n("a358"),l={data:function(){return{content:"hello",content2:"hello world",reply:""}},methods:{helloHandle:function(e){var t=this;this.$callMain("example.hello",e).then((function(e){t.$message.info(e)}))},executeJSHandle:function(e){Object(c["a"])("executeJS",{str:e}).then((function(e){0==e.code&&console.log(e.data)})).catch((function(e){console.log("err:",e)}))}}},s=l,i=(n("eb5b"),n("2877")),u=Object(i["a"])(s,a,o,!1,null,"12170f3f",null);t["default"]=u.exports},a358:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("b775"),o={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 c(e,t){return Object(a["b"])({url:o[e],method:"post",data:t})}},eb5b:function(e,t,n){"use strict";n("5281")}}]);
- //# sourceMappingURL=chunk-08412ace.4df0e2d0.js.map
|