(function(e){function t(t){for(var a,c,u=t[0],i=t[1],d=t[2],l=0,h=[];l{}),document.body.addEventListener("focusout",()=>{var e=window.navigator.userAgent;(e.indexOf("iPhone")>0||e.indexOf("iPad")>0)&&(document.body.scrollTop=a,document.documentElement.scrollTop=a)})},"56d7":function(e,t,n){"use strict";n.r(t);var a=n("2b0e"),c=n("3dfd"),o=n("8c4f");const r=[{path:"/cms/refresh",name:"refresh",meta:{index:3},component:e=>n.e("chunk-2d21022e").then(function(){var t=[n("b736")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/home",name:"Home",meta:{index:3},component:e=>n.e("chunk-7e9e957b").then(function(){var t=[n("40cf")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/work",name:"work",meta:{index:3},component:e=>n.e("chunk-03f11e0c").then(function(){var t=[n("5bf1")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/mine",name:"Mine",meta:{index:3},component:e=>n.e("chunk-3b2bb27f").then(function(){var t=[n("109a")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/finish",name:"finish",meta:{index:3},component:e=>n.e("chunk-698e9c2a").then(function(){var t=[n("0d9e")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/finish/detail",name:"finishDetail",meta:{index:3},component:e=>n.e("chunk-26d01dfa").then(function(){var t=[n("7c15")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/finish/detailed",name:"finishDetailed",meta:{index:3},component:e=>n.e("chunk-75d70626").then(function(){var t=[n("3e1e")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/Package/detail",name:"PackageDetail",meta:{index:3},component:e=>n.e("chunk-2f323a42").then(function(){var t=[n("4331")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/Package/detailed",name:"PackageDetailed",meta:{index:3},component:e=>n.e("chunk-05cd0a2c").then(function(){var t=[n("a42d")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/dispatch/detail",name:"dispatchDetail",meta:{index:3},component:e=>n.e("chunk-6af21413").then(function(){var t=[n("6a30")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/dispatch/detailed",name:"dispatchDetailed",meta:{index:3},component:e=>n.e("chunk-59d32064").then(function(){var t=[n("b3a6")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/ceshi",name:"ceshi",meta:{index:3},component:e=>n.e("chunk-6e4aceda").then(function(){var t=[n("e5c7")];e.apply(null,t)}.bind(this)).catch(n.oe)}];var u=r;const i=o["a"].prototype.push;o["a"].prototype.push=function(e){return i.call(this,e).catch(e=>e)},a["default"].use(o["a"]);const d=[{path:"/",name:"Login",meta:{index:1,title:"九方软件"},component:e=>n.e("chunk-430782b8").then(function(){var t=[n("a55b")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms/print",name:"print",component:e=>n.e("chunk-2a30b7a1").then(function(){var t=[n("d027")];e.apply(null,t)}.bind(this)).catch(n.oe)},{path:"/cms",name:"Cms",meta:{index:2},component:e=>n.e("chunk-50d16776").then(function(){var t=[n("ea84")];e.apply(null,t)}.bind(this)).catch(n.oe),children:u}],l=new o["a"]({routes:d,mode:"hash",linkActiveClass:"active"});l.beforeEach((e,t,n)=>{if("/"===e.path)n();else{const t=localStorage.getItem("token");t||"/cms/print"===e.path?n():n("/")}n()});var h=l,s=n("2f62");a["default"].use(s["a"]);var f=new s["a"].Store({state:{},mutations:{},actions:{},modules:{}}),p=n("cee4");let m={};const b=p["a"].create(m);m={timeout:0,withCredentials:!0},b.interceptors.request.use((function(e){const t=localStorage.getItem("token"),n=JSON.parse(localStorage.getItem("site")),a="http://fyy_api.qingyaokeji.com";return e.url=a+e.url,"http://121.36.142.167:7774/jbl/api/mes/login"===e.data.url||"http://121.36.142.167:7774/jbl/api/site/all/ignore-action?_allow_anonymous=true"===e.data.url?e.data.header=["Content-Type:application/json"]:e.data.header=["Authorization:Bearer "+t,"Content-Type:application/json","Site:"+n.site],e}),(function(e){return Promise.reject(e)})),b.interceptors.response.use(e=>200===e.status?200===e.data.code?e.data:401===e.data.code?(localStorage.removeItem("mobile_token"),location.reload()):(a["default"].prototype.$Message.error(e.data.msg||"未知错误"),e.data||e):a["default"].prototype.$Message.error("请求超时"),e=>(a["default"].prototype.$Notice.error({title:"请求失败",desc:e}),e));var k=b,v=n("5f5b"),y=n("b1e0"),g=n("f825"),x=n.n(g),w=(n("f8ce"),n("f9e3"),n("2dd8"),n("bb6f")),j=n.n(w);a["default"].use(x.a),a["default"].use(j.a),a["default"].use(v["a"]),a["default"].use(y["a"]),a["default"].config.productionTip=!1,a["default"].prototype.axios=k,new a["default"]({router:h,store:f,render:e=>e(c["default"])}).$mount("#app")},7634:function(e,t,n){"use strict";n("4459")}});