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