mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
2 lines
6.3 KiB
JavaScript
Vendored
2 lines
6.3 KiB
JavaScript
Vendored
(function(e){function n(n){for(var a,r,u=n[0],d=n[1],i=n[2],h=0,l=[];h<u.length;h++)r=u[h],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&l.push(o[r][0]),o[r]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a]);f&&f(n);while(l.length)l.shift()();return c.push.apply(c,i||[]),t()}function t(){for(var e,n=0;n<c.length;n++){for(var t=c[n],a=!0,r=1;r<t.length;r++){var u=t[r];0!==o[u]&&(a=!1)}a&&(c.splice(n--,1),e=d(d.s=t[0]))}return e}var a={},r={app:0},o={app:0},c=[];function u(e){return d.p+"js/"+({}[e]||e)+"."+{"chunk-2d23156c":"0622f885","chunk-48edb3d1":"3a7a4b46","chunk-4a36a8d0":"9136f98d","chunk-523f00ab":"fdfb73f2","chunk-5387ed94":"4177e69a","chunk-59ba1d6e":"e455dc97","chunk-59f3bcab":"45013db3","chunk-5ed10db2":"c024642d","chunk-62101cb8":"0d2ed3f5","chunk-7136ffb6":"3fc0cbd6","chunk-8eb4b592":"a7ab2ed3","chunk-959f9a24":"49c53be2"}[e]+".js"}function d(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var n=[],t={"chunk-48edb3d1":1,"chunk-4a36a8d0":1,"chunk-523f00ab":1,"chunk-5387ed94":1,"chunk-59ba1d6e":1,"chunk-59f3bcab":1,"chunk-5ed10db2":1,"chunk-62101cb8":1,"chunk-7136ffb6":1,"chunk-8eb4b592":1,"chunk-959f9a24":1};r[e]?n.push(r[e]):0!==r[e]&&t[e]&&n.push(r[e]=new Promise((function(n,t){for(var a="css/"+({}[e]||e)+"."+{"chunk-2d23156c":"31d6cfe0","chunk-48edb3d1":"8042b5ae","chunk-4a36a8d0":"e437602b","chunk-523f00ab":"5c276b9a","chunk-5387ed94":"2d9ba6db","chunk-59ba1d6e":"0512aef6","chunk-59f3bcab":"f15bb106","chunk-5ed10db2":"12c276ba","chunk-62101cb8":"67947a26","chunk-7136ffb6":"9ae72c1b","chunk-8eb4b592":"9e793ba8","chunk-959f9a24":"ed76f224"}[e]+".css",o=d.p+a,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var i=c[u],h=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(h===a||h===o))return n()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){i=l[u],h=i.getAttribute("data-href");if(h===a||h===o)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var a=n&&n.target&&n.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[e],f.parentNode.removeChild(f),t(c)},f.href=o;var b=document.getElementsByTagName("head")[0];b.appendChild(f)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)n.push(a[2]);else{var c=new Promise((function(n,t){a=o[e]=[n,t]}));n.push(a[2]=c);var i,h=document.createElement("script");h.charset="utf-8",h.timeout=120,d.nc&&h.setAttribute("nonce",d.nc),h.src=u(e);var l=new Error;i=function(n){h.onerror=h.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",l.name="ChunkLoadError",l.type=a,l.request=r,t[1](l)}o[e]=void 0}};var f=setTimeout((function(){i({type:"timeout",target:h})}),12e4);h.onerror=h.onload=i,document.head.appendChild(h)}return Promise.all(n)},d.m=e,d.c=a,d.d=function(e,n,t){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)d.d(t,a,function(n){return e[n]}.bind(null,a));return t},d.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="",d.oe=function(e){throw console.error(e),e};var i=window["webpackJsonp"]=window["webpackJsonp"]||[],h=i.push.bind(i);i.push=n,i=i.slice();for(var l=0;l<i.length;l++)n(i[l]);var f=h;c.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"56d7":function(e,n,t){"use strict";t.r(n);var a=t("8642"),r=function(){var e=this,n=e._self._c;return n("div",{attrs:{id:"app"}},[n("keep-alive",[e.$route.meta.keepAlive?n("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():n("router-view")],1)},o=[],c={},u=c,d=t("0b56"),i=Object(d["a"])(u,r,o,!1,null,null,null),h=i.exports,l=t("a18c"),f=t("7736");a["default"].use(f["a"]);var b=new f["a"].Store({state:{},mutations:{},actions:{},modules:{}}),p=t("5422"),s=t.n(p);t("e9b7"),t("f33e");const m=[{path:"/Login",name:"Login",component:()=>t.e("chunk-5ed10db2").then(t.bind(null,"a55b"))},{path:"/",component:()=>t.e("chunk-523f00ab").then(t.bind(null,"1e4b")),children:[{path:"GOODS_LIST",name:"商品列表",component:()=>t.e("chunk-48edb3d1").then(t.bind(null,"088a")),meta:{keepAlive:!0}},{path:"GOODS_TYPE",name:"商品种类",component:()=>t.e("chunk-8eb4b592").then(t.bind(null,"77b8"))},{path:"GOODS_BRAND",name:"商品品牌",component:()=>t.e("chunk-7136ffb6").then(t.bind(null,"be26"))},{path:"SHOP_MANAGE",name:"店铺管理",component:()=>t.e("chunk-59ba1d6e").then(t.bind(null,"3e63"))},{path:"USER_MANAGE",name:"用户管理",component:()=>t.e("chunk-959f9a24").then(t.bind(null,"6355"))},{path:"ROLE_MANAGE",name:"角色管理",component:()=>t.e("chunk-62101cb8").then(t.bind(null,"f982"))},{path:"PERMISSION_MANAGE",name:"权限管理",component:()=>t.e("chunk-2d23156c").then(t.bind(null,"efb7"))},{path:"SYSTEM_LOG",name:"系统日志",component:()=>t.e("chunk-59f3bcab").then(t.bind(null,"054a"))},{path:"GOODS_LOG",name:"商品记录",component:()=>t.e("chunk-4a36a8d0").then(t.bind(null,"5c89"))},{path:"/index/yingyeting/addgoods",name:"新建商品",component:()=>t.e("chunk-5387ed94").then(t.bind(null,"5635"))},{path:"/",redirect:"GOODS_LIST"}]},{path:"/",redirect:"/index"}];var k=m;k.forEach(e=>{l["a"].addRoute(e)});t("4ff3");a["default"].use(s.a),a["default"].config.productionTip=!1,new a["default"]({router:l["a"],store:b,render:e=>e(h)}).$mount("#app")},a18c:function(e,n,t){"use strict";var a=t("8642"),r=t("1ceb");t("4ff3");a["default"].use(r["a"]);const o=()=>new r["a"]({scrollBehavior:()=>({y:0})}),c=o();c.beforeEach((e,n,t)=>{const a=localStorage.getItem("token");"Login"===e.name||a?t():t({name:"Login"})}),n["a"]=c},f33e:function(e,n,t){}});
|
|
//# sourceMappingURL=app.2cf04756.js.map
|