webpackJsonp([6],{"4qCZ":function(e,n){},"5tgt":function(e,n,t){e.exports=function(e,n){return function(o){t("Opzk")("./"+e+"/"+n+".vue").then(function(e){o(e)})}}},"6jtR":function(e,n){},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("//Fk"),r=t.n(o),i=t("7+uW"),s={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)},staticRenderFns:[]};var a=t("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){t("6jtR")},null,null).exports,u=t("/ocq"),c=t("5tgt"),d=t.n(c);i.default.use(u.a);var l=function(e){t.e(0).then(t.bind(null,"ODjX")).then(function(n){e(n)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var p,f=[{path:"/index",name:"index",component:d()("index","index")},{path:"/staffRecordsTemplate",name:"员工档案",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:l},{path:"/404",name:"error404",component:l},{path:"/500",name:"error500",component:l},{path:"*",redirect:"/404",hidden:!0}],m=new u.a({routes:f,scrollBehavior:function(){return{y:0}}}),h=t("zL8q"),g=t.n(h),w=t("Rf8U"),v=t.n(w),V=t("mtWM"),k=t.n(V),b=t("bOdI"),x=t.n(b),C=t("NYxO");i.default.use(C.a);var O=new C.a.Store({state:{user:{},token:null,title:"",show:!1},mutations:(p={},x()(p,"login",function(e,n){sessionStorage.token=n,e.token=n}),x()(p,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),x()(p,"title",function(e,n){e.title=n}),x()(p,"show",function(e,n){e.show=n}),p)}),_=(t("4qCZ"),t("uKUT"),t("Xcu2"),{}),W=[],j=navigator.userAgent,y=j.match(/(Android);?[\s\/]+([\d.]+)?/),A=j.match(/(iPad).*OS\s([\d_]+)/),P=j.match(/(iPod)(.*OS\s([\d_]+))?/),S=!A&&j.match(/(iPhone\sOS)\s([\d_]+)/);if(_.userAgent=j,_.ios=_.android=_.iphone=_.ipad=_.androidChrome=!1,y&&(_.os="android",_.osVersion=y[2],_.android=!0,_.androidChrome=j.toLowerCase().indexOf("chrome")>=0),(A||S||P)&&(_.os="ios",_.ios=!0),S&&!P&&(_.osVersion=S[2].replace(/_/g,"."),_.iphone=!0),A&&(_.osVersion=A[2].replace(/_/g,"."),_.ipad=!0),P&&(_.osVersion=P[3]?P[3].replace(/_/g,"."):null,_.iphone=!0),_.ios&&_.osVersion&&j.indexOf("Version/")>=0&&"10"===_.osVersion.split(".")[0]&&(_.osVersion=j.toLowerCase().split("version/")[1].split(" ")[0]),_.webView=(S||A||P)&&j.match(/.*AppleWebKit(?!.*Safari)/i),_.os&&(W.push(_.os,_.os+"-"+_.osVersion.split(".")[0],_.os+"-"+_.osVersion.replace(/\./g,"-")),"ios"===_.os))for(var B=parseInt(_.osVersion.split(".")[0],10)-1;B>=6;B--)W.push("ios-gt-"+B);_.isWeixin=/MicroMessenger/i.test(j);var J=_;function R(e){if(window.WebViewJavascriptBridge)return e(window.WebViewJavascriptBridge);if(J.android)document.addEventListener("WebViewJavascriptBridgeReady",function(){e(WebViewJavascriptBridge)},!1);else{if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}}var E={callhandler:function(e,n,t){R(function(o){o.callHandler(e,n,t)})},registerhandler:function(e,n){R(function(t){t.registerHandler(e,function(e,t){n(e,t)})})}};t("Lw6n");i.default.prototype.$bridge=E,i.default.config.productionTip=!1,i.default.use(g.a,{size:"large"}),i.default.use(v.a,k.a),i.default.axios.defaults.withCredentials=!0,i.default.axios.interceptors.request.use(function(e){return e},function(e){return console.log("requesterr"+e),r.a.reject(e)}),i.default.axios.interceptors.response.use(function(e){return console.log("main:",e),200==e.status&&1==e.data.errorCode&&console.log("main:",e),e},function(e){if(console.log(e),e.response)switch(e.response.status){case 401:case 500:h.Message.error("服务器500")}return r.a.reject(e.response.data)}),m.beforeEach(function(e,n,t){"/"==e.path?t({path:"/login"}):t()}),new i.default({el:"#app",router:m,store:O,components:{App:a},template:"<App/>"})},Opzk:function(e,n,t){var o={"./contacts/staffRecordsTemplate.vue":["lFAe",1],"./errorPage/403.vue":["6XGN",2],"./errorPage/404.vue":["AejC",4],"./errorPage/500.vue":["FskK",3],"./errorPage/index.vue":["ODjX",0]};function r(e){var n=o[e];return n?t.e(n[1]).then(function(){return t(n[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(o)},r.id="Opzk",e.exports=r},Xcu2:function(e,n){},uKUT:function(e,n){}},["NHnr"]);
//# sourceMappingURL=app.6dbbdcbb85feb53150b7.js.map