webpackJsonp([15],{"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"6DE0":function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={};n.d(o,"dateFormat",function(){return y});var r=n("//Fk"),a=n.n(r),i=n("fZjL"),s=n.n(i),u=(n("j1ja"),n("hKoQ")),c=n.n(u),d=n("7+uW"),f={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[this.isRouterAlive?t("router-view"):this._e()],1)},staticRenderFns:[]};var l=n("VU/8")({name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!0}},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick(function(){this.isRouterAlive=!0})}}},f,!1,function(e){n("u4VM")},null,null).exports,p=n("/ocq"),h=n("5tgt"),g=n.n(h);d.default.use(p.a),window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var m,v=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})},w=[{path:"/",name:"/",redirect:"/version"},{path:"/haoban",name:"好办运维后台",redirect:"/version",component:g()("haoban","haobanIndex"),children:[{path:"/version",name:"版本更新管理",component:g()("haoban","versionList")},{path:"/addSet",name:"添加设置",component:g()("haoban","addSet")},{path:"/setDetail",name:"详情",component:g()("haoban","setDetail")},{path:"/adList",name:"广告列表",component:g()("haoban","adList")}]},{path:"/401",name:"无权访问",component:v},{path:"/404",name:"不存在",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],b=new p.a({routes:w}),x=n("zL8q"),k=n.n(x),D=n("Rf8U"),R=n.n(D),S=n("mtWM"),M=n.n(S),j=n("bOdI"),E=n.n(j),C=n("NYxO");d.default.use(C.a);var O=new C.a.Store({state:{user:{},token:null,title:"",show:!1,showfoot:!0},mutations:(m={},E()(m,"login",function(e,t){sessionStorage.token=t,e.token=t}),E()(m,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),E()(m,"title",function(e,t){e.title=t}),E()(m,"show",function(e,t){e.show=t}),E()(m,"isShowFoot",function(e,t){e.showfoot=t}),m)});n("6DE0"),n("tvR6"),n("uKUT"),n("Xcu2"),n("ZsCP");function y(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),o={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[r]:("00"+o[r]).substr((""+o[r]).length)));return t}}c.a.polyfill(),d.default.config.productionTip=!1,d.default.use(k.a),d.default.use(R.a,M.a),d.default.directive("focus",function(e){e.querySelector("input").focus()}),s()(o).forEach(function(e){d.default.filter(e,o[e])}),d.default.prototype.axios.withCredentials=!0,window.$bus=new d.default,d.default.axios.interceptors.request.use(function(e){return e},function(e){return a.a.reject(e)}),d.default.axios.interceptors.response.use(function(e){return 200==e.status&&(4002!=e.data.errorCode&&4011!=e.data.errorCode||(window.location.href=window.location.origin+"/operation-platform/#/")),e},function(e){if(e.response)switch(e.response.status){case 401:4011==e.response.data.errorCode?k.a.MessageBox.confirm(e.response.data.message,"提示",{confirmButtonText:"知道了",showCancelButton:!1,type:"warning"}).then(function(e){window.location.href=window.location.origin+"/operation-platform/#/"}).catch(function(){}):window.location.href=window.location.origin+"/operation-platform/#/";break;case 403:4004==e.response.data.errorCode&&k.a.Message.error(e.response.data.message)}return a.a.reject(e.response.status.toString())}),new d.default({el:"#app",router:b,store:O,components:{App:l},template:"<App/>"})},Opzk:function(e,t,n){var o={"./error/401.vue":["3RDD",11],"./error/404.vue":["34W9",8],"./errorPage/403.vue":["6XGN",9],"./errorPage/404.vue":["AejC",12],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./haoban/adList.vue":["M5Na",13],"./haoban/addSet.vue":["2gTr",4,0],"./haoban/haobanIndex.vue":["9F3s",2,0],"./haoban/setDetail.vue":["b9YQ",0,7],"./haoban/versionList.vue":["HFdE",0,5],"./index/entrance.vue":["EpjD",3,0],"./index/index.vue":["JXTs",0,6]};function r(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).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){},ZsCP:function(e,t){},tvR6:function(e,t){},u4VM:function(e,t){},uKUT:function(e,t){}},["NHnr"]);
//# sourceMappingURL=app.ab5bf98a00efe2194d46.1560223275203.js.map