webpackJsonp([20],{"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)})}}},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("//Fk"),a=t.n(o),r=t("7+uW"),i={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 c=t("VU/8")({name:"App",data:function(){return{}}},i,!1,function(e){t("YcUK")},null,null).exports,s=t("/ocq"),u=t("5tgt"),p=t.n(u);r.default.use(s.a);var m=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 l,d=[{path:"/login",name:"登录",component:p()("login","index")},{path:"/index",name:"index",component:p()("index","index")},{path:"/contacts",name:"通讯录",component:p()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:p()("contacts","administrativeFrame")},{path:"/storeFrame",name:"门店架构",component:p()("contacts","storeFrame")},{path:"/employee",name:"在职员工",component:p()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:p()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:p()("contacts","fileSet")},{path:"/shareContact",name:"共享通讯录",component:p()("contacts","shareContact")}]},{path:"/enterpriseApp",name:"企业应用",component:p()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",component:p()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:p()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:p()("reviewCenter","unreview")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:p()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:m},{path:"/404",name:"error404",component:m},{path:"/500",name:"error500",component:m},{path:"*",redirect:"/404",hidden:!0}],f=new s.a({routes:d,scrollBehavior:function(){return{y:0}}}),v=t("zL8q"),h=t.n(v),w=t("Rf8U"),g=t.n(w),x=t("mtWM"),C=t.n(x),k=t("bOdI"),y=t.n(k),F=t("NYxO");r.default.use(F.a);var S=new F.a.Store({state:{user:{},token:null,title:"",show:!1},mutations:(l={},y()(l,"login",function(e,n){sessionStorage.token=n,e.token=n}),y()(l,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),y()(l,"title",function(e,n){e.title=n}),y()(l,"show",function(e,n){e.show=n}),l)}),O=(t("4qCZ"),t("uKUT"),t("Xcu2"),t("kIPI")),j=t.n(O),A=t("Yw2C"),T=t.n(A),I=t("dq+2"),b=t.n(I),q=t("SE7k"),P=t.n(q);r.default.use(P.a),r.default.use(b.a),r.default.use(T.a),r.default.use(j.a),r.default.config.productionTip=!1,r.default.use(h.a,{size:"large"}),r.default.use(g.a,C.a),r.default.axios.defaults.withCredentials=!0,r.default.axios.interceptors.request.use(function(e){return e},function(e){return console.log("requesterr"+e),a.a.reject(e)}),r.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:window.location.href=window.location.origin+"/gic-web/#/";case 500:v.Message.error("服务器500")}return a.a.reject(e.response.data)}),f.beforeEach(function(e,n,t){"/"==e.path?t({path:"/login"}):t()}),new r.default({el:"#app",router:f,store:S,components:{App:c},template:"<App/>"})},Opzk:function(e,n,t){var o={"./contacts/administrativeFrame.vue":["kLcy",11],"./contacts/employee.vue":["AdJp",14],"./contacts/fileSet.vue":["CSjr",17],"./contacts/index.vue":["41Rh",7],"./contacts/shareContact.vue":["Gfms",10],"./contacts/staffRecordsTemplate.vue":["lFAe",1],"./contacts/storeFrame.vue":["7SJI",15],"./contacts/unemployee.vue":["TGrv",13],"./enterpriseApp/index.vue":["da9f",6],"./errorPage/403.vue":["6XGN",5],"./errorPage/404.vue":["AejC",3],"./errorPage/500.vue":["FskK",4],"./errorPage/index.vue":["ODjX",0],"./index/index.vue":["JXTs",8],"./login/index.vue":["T+/8",2],"./reviewCenter/index.vue":["+lem",16],"./reviewCenter/reviewed.vue":["CLYF",18],"./reviewCenter/unreview.vue":["xCEU",9],"./setting/index.vue":["VlR1",12]};function a(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+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Xcu2:function(e,n){},YcUK:function(e,n){},uKUT:function(e,n){}},["NHnr"]);
//# sourceMappingURL=app.78a291ae40a09867c522.js.map