Commit a751a99a authored by jiangyipeng's avatar jiangyipeng

1

parent aca5c34a
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><title>doc</title><link href=./static/css/app.1d9fd9f454e38d13b1f70838b64639f9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.481972107a4b2bbf8c2a.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.62362f0f532a2287ae5d.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><title>doc</title><link href=./static/css/app.1d9fd9f454e38d13b1f70838b64639f9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.481972107a4b2bbf8c2a.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.7b6b561c033f2d5cf9b7.js></script></body></html>
\ No newline at end of file \ No newline at end of file
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 i=t("//Fk"),r=t.n(i),o=t("mtWM"),a=t.n(o),u=t("mw3O"),c=t.n(u),f={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"},s=new(t("7+uW").a);a.a.interceptors.request.use(function(n){return n},function(n){return r.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code&&s.$notify({type:"danger",duration:2e3,message:n.data.err_msg}),n.data},function(n){return r.a.reject(n)});var l=function(n,e){var t=f[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:c.a.stringify(e)})};e.a={config:function(n){return l("config",n)},getSsoToken:function(n){return l("getSsoToken",n)},folderList:function(n){return l("folderList",n)},articleList:function(n){return l("articleList",n)},articleDetail:function(n){return l("articleDetail",n)},articleEdit:function(n){return l("articleEdit",n)}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var i=t("77gS"),r=(t("MY4N"),t("0zAV")),o=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),u=(t("3Lne"),t("SSsa")),c=(t("4yKu"),t("wolx")),f=t("7+uW"),s={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var l=t("VU/8")({name:"App"},s,!1,function(n){t("Lorf")},null,null).exports,p=t("/ocq"),d=(t("mvHQ"),t("I22p"),t("NYxO"));f.a.use(d.a);var h=new d.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});f.a.use(p.a);var m=new p.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(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).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(4).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(3).then(t.bind(null,"Y7I0"))}}]}]});m.beforeEach(function(n,e,t){h.state.user_info,t()});var g=m,x=t("G0J2"),v=t.n(x);t("3f40"),t("4qOc"),t("+cgv");f.a.use(v.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),f.a.use(c.a),f.a.use(u.a),f.a.use(a.a),f.a.use(o.a),f.a.use(r.a),f.a.use(i.a),f.a.config.productionTip=!1,new f.a({el:"#app",router:g,components:{App:l},template:"<App/>"})},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.62362f0f532a2287ae5d.js.map
\ No newline at end of file
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),f={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"},s=new(t("7+uW").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&&s.$notify({type:"danger",duration:2e3,message:n.data.err_msg}),n.data},function(n){return i.a.reject(n)});var d=function(n,e){var t=f[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};e.a={config:function(n){return d("config",n)},getSsoToken:function(n){return d("getSsoToken",n)},folderList:function(n){return d("folderList",n)},articleList:function(n){return d("articleList",n)},articleDetail:function(n){return d("articleDetail",n)},articleEdit:function(n){return d("articleEdit",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")),f=t("7+uW"),s={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var d=t("VU/8")({name:"App"},s,!1,function(n){t("Lorf")},null,null).exports,l=t("/ocq"),p=t("mvHQ"),h=t.n(p),g=t("I22p"),m={config:function(n){g.a.config().then(function(e){0==e.err_code&&(console.log("config::",e),n(e.data))})},getSsoToken:function(n){g.a.getSsoToken({code:n}).then(function(n){alert(h()(n)),0==n.err_code&&console.log("config::",n)})},getCode:function(){var n=this;this.config(function(e){dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:e.corpId,onSuccess:function(e){alert(111),n.getSsoToken(e.code)},onFail:function(e){alert(h()(e)),n.getSsoToken(e.code)}})})})}},x=t("NYxO");f.a.use(x.a);var v=new x.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});f.a.use(l.a);var S=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(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).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(4).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(3).then(t.bind(null,"Y7I0"))}}]}]});S.beforeEach(function(n,e,t){v.state.user_info||m.getCode(),t()});var k=S,b=t("G0J2"),w=t.n(b);t("3f40"),t("4qOc"),t("+cgv");f.a.use(w.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),f.a.use(u.a),f.a.use(c.a),f.a.use(a.a),f.a.use(r.a),f.a.use(i.a),f.a.use(o.a),f.a.config.productionTip=!1,new f.a({el:"#app",router:k,components:{App:d},template:"<App/>"})},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.7b6b561c033f2d5cf9b7.js.map
\ No newline at end of file
This diff is collapsed.
...@@ -45,7 +45,7 @@ let router = new Router({ ...@@ -45,7 +45,7 @@ let router = new Router({
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
//没有用户信息说明则获取 //没有用户信息说明则获取
if(!store.state.user_info){ if(!store.state.user_info){
// ddLogin.getCode(); ddLogin.getCode();
} }
next(); next();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment