webpackJsonp([6],{"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"6jtR":function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("//Fk"),r=n.n(o),a=n("7+uW"),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){n("6jtR")},null,null).exports,i=n("/ocq"),c=n("5tgt"),f=n.n(c);a.default.use(i.a);var l=function(e){n.e(0).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var p,d=[{path:"/index",name:"index",component:f()("index","index")},{path:"/staffRecordsTemplate",name:"员工档案设置",component:f()("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 i.a({routes:d,scrollBehavior:function(){return{y:0}}}),g=n("zL8q"),h=n.n(g),v=n("Rf8U"),k=n.n(v),w=n("mtWM"),x=n.n(w),j=n("bOdI"),O=n.n(j),R=n("NYxO");a.default.use(R.a);var b=new R.a.Store({state:{user:{},token:null,title:"",show:!1},mutations:(p={},O()(p,"login",function(e,t){sessionStorage.token=t,e.token=t}),O()(p,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),O()(p,"title",function(e,t){e.title=t}),O()(p,"show",function(e,t){e.show=t}),p)});n("4qCZ"),n("uKUT"),n("Xcu2");a.default.config.productionTip=!1,a.default.use(h.a,{size:"large"}),a.default.use(k.a,x.a),a.default.axios.defaults.withCredentials=!0,a.default.axios.interceptors.request.use(function(e){return e},function(e){return console.log("requesterr"+e),r.a.reject(e)}),a.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:g.Message.error("服务器500")}return r.a.reject(e.response.data)}),m.beforeEach(function(e,t,n){"/"==e.path?n({path:"/login"}):n()}),new a.default({el:"#app",router:m,store:b,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){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 t=o[e];return t?n.e(t[1]).then(function(){return n(t[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,t){},uKUT:function(e,t){}},["NHnr"]);
//# sourceMappingURL=app.b6992da8a0e11223eff1.js.map