| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23265f79"],{"5cb9":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",[n("h3",{style:{marginBottom:"16px"}},[e._v(" demo1 打开文件夹实现 ")]),n("a-list",{attrs:{bordered:"","data-source":e.data},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{on:{click:function(n){return e.openDirectry(t.id)}}},[e._v(" "+e._s(t.content)+" "),n("a-button",{attrs:{type:"link"}},[e._v(" 打开 ")])],1)}}])})],1)},o=[],i=n("a358"),c=[{content:"【下载】目录",id:"download"},{content:"【图片】目录",id:"picture"},{content:"【文档】目录",id:"doc"},{content:"【音乐】目录",id:"music"}],u={data:function(){return{data:c}},methods:{openDirectry:function(e){console.log("id:",e);var t={id:e};Object(i["a"])("openDir",t).then((function(e){if(0!==e.code)return!1})).catch((function(e){console.log("err:",e)}))}}},r=u,l=n("2877"),p=Object(l["a"])(r,a,o,!1,null,null,null);t["default"]=p.exports},a358:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("b775"),o={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/example/autoLaunchEnable",autoLaunchDisable:"/api/v1/example/autoLaunchDisable",autoLaunchIsEnabled:"/api/v1/example/autoLaunchIsEnabled",openSoftware:"/api/v1/example/openSoftware"};function i(e,t){return Object(a["b"])({url:o[e],method:"post",data:t})}}}]);
- //# sourceMappingURL=chunk-23265f79.dccf40ba.js.map
|