webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),i=t.n(o),r=t("mtWM"),a=t.n(r),c=t("mw3O"),u=t.n(c),d={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},f=t("7+uW"),s=t("RjhT"),l=new f.a;a.a.interceptors.request.use(function(n){return n},function(n){return i.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code?l.$notify({type:"danger",duration:2e3,message:n.data.err_msg}):10003===n.data.err_code&&(l.$notify({type:"primary",duration:1500,message:"重新登录"}),s.a.getCode()),n.data},function(n){return i.a.reject(n)});var p=function(n,e){var t=d[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};function h(n){var e=n||{};return e.token=localStorage.getItem("doc_phone_token"),e}e.a={config:function(n){return p("config",n)},getSsoToken:function(n){return p("getSsoToken",n)},folderList:function(n){return p("folderList",h(n))},articleList:function(n){return p("articleList",h(n))},articleDetail:function(n){return p("articleDetail",h(n))},articleEdit:function(n){return p("articleEdit",h(n))}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),i=(t("MY4N"),t("0zAV")),r=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),d=t("7+uW"),f={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App"},f,!1,function(n){t("Lorf")},null,null).exports,l=t("/ocq"),p=t("RjhT"),h=t("NYxO");d.a.use(h.a);new h.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});d.a.use(l.a);var g=new l.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(3).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(2).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(1).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(4).then(t.bind(null,"Y7I0"))}}]}]});g.beforeEach(function(n,e,t){localStorage.getItem("doc_phone_token")?t():p.a.getCode(function(){return t()})});var m=g,k=t("G0J2"),v=t.n(k);t("3f40"),t("4qOc"),t("+cgv");d.a.use(v.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),d.a.use(u.a),d.a.use(c.a),d.a.use(a.a),d.a.use(r.a),d.a.use(i.a),d.a.use(o.a),d.a.config.productionTip=!1,new d.a({el:"#app",router:m,components:{App:s},template:"<App/>"})},RjhT:function(n,e,t){"use strict";var o=t("mvHQ"),i=t.n(o),r=t("I22p");e.a={config:function(n){r.a.config().then(function(e){0==e.err_code&&n(e.data)})},getSsoToken:function(n,e){r.a.getSsoToken({code:n}).then(function(n){0==n.err_code&&(localStorage.setItem("doc_phone_token",n.data.token),alert("保存新token"),e())})},getCode:function(n){var e=this;this.config(function(t){dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:t.corpId,onSuccess:function(t){e.getSsoToken(t.code,function(){return n()})},onFail:function(n){alert(i()(n)),e.getSsoToken(n.code)}})})})}}},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]);
//# sourceMappingURL=app.49b6e41169c058915dc1.js.map