erp/public/dist/js/app.10562a88.js
2022-08-31 18:15:46 +08:00

2 lines
6.0 KiB
JavaScript
Vendored

(function(e){function n(n){for(var r,a,u=n[0],l=n[1],i=n[2],h=0,f=[];h<u.length;h++)a=u[h],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&f.push(c[a][0]),c[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);d&&d(n);while(f.length)f.shift()();return o.push.apply(o,i||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,a=1;a<t.length;a++){var u=t[a];0!==c[u]&&(r=!1)}r&&(o.splice(n--,1),e=l(l.s=t[0]))}return e}var r={},a={app:0},c={app:0},o=[];function u(e){return l.p+"js/"+({}[e]||e)+"."+{"chunk-01b147f1":"411ddf4a","chunk-0ab08886":"47a1307b","chunk-19797d59":"521ebbb8","chunk-1c56d4e4":"ceee754d","chunk-2a2235b7":"b4b58aba","chunk-33e29a08":"03cb9098","chunk-3bcfd210":"374395ff","chunk-4546fe72":"955bc949","chunk-5e1711e0":"4eafce54","chunk-7c135f6b":"7b5f30c1","chunk-f365c476":"68b0060c"}[e]+".js"}function l(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.e=function(e){var n=[],t={"chunk-01b147f1":1,"chunk-0ab08886":1,"chunk-19797d59":1,"chunk-1c56d4e4":1,"chunk-2a2235b7":1,"chunk-33e29a08":1,"chunk-3bcfd210":1,"chunk-4546fe72":1,"chunk-5e1711e0":1,"chunk-7c135f6b":1,"chunk-f365c476":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var r="css/"+({}[e]||e)+"."+{"chunk-01b147f1":"cec86515","chunk-0ab08886":"0080a3bb","chunk-19797d59":"4a709612","chunk-1c56d4e4":"a81ac70a","chunk-2a2235b7":"1a0ea8f6","chunk-33e29a08":"9142830e","chunk-3bcfd210":"9c27e2c9","chunk-4546fe72":"3bcd502b","chunk-5e1711e0":"d4b94e52","chunk-7c135f6b":"b66e0a3d","chunk-f365c476":"a2321795"}[e]+".css",c=l.p+r,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var i=o[u],h=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(h===r||h===c))return n()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){i=f[u],h=i.getAttribute("data-href");if(h===r||h===c)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var r=n&&n.target&&n.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete a[e],d.parentNode.removeChild(d),t(o)},d.href=c;var p=document.getElementsByTagName("head")[0];p.appendChild(d)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=c[e]=[n,t]}));n.push(r[2]=o);var i,h=document.createElement("script");h.charset="utf-8",h.timeout=120,l.nc&&h.setAttribute("nonce",l.nc),h.src=u(e);var f=new Error;i=function(n){h.onerror=h.onload=null,clearTimeout(d);var t=c[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",f.name="ChunkLoadError",f.type=r,f.request=a,t[1](f)}c[e]=void 0}};var d=setTimeout((function(){i({type:"timeout",target:h})}),12e4);h.onerror=h.onload=i,document.head.appendChild(h)}return Promise.all(n)},l.m=e,l.c=r,l.d=function(e,n,t){l.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,n){if(1&n&&(e=l(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)l.d(t,r,function(n){return e[n]}.bind(null,r));return t},l.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(n,"a",n),n},l.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},l.p="",l.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 f=0;f<i.length;f++)n(i[f]);var d=h;o.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 r=t("8642"),a=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)},c=[],o={},u=o,l=t("0b56"),i=Object(l["a"])(u,a,c,!1,null,null,null),h=i.exports,f=t("1ceb");r["default"].use(f["a"]);const d=()=>new f["a"]({scrollBehavior:()=>({y:0})}),p=d();p.beforeEach((e,n,t)=>{const r=localStorage.getItem("token");"Login"===e.name||r?t():t({name:"Login"})});var s=p,b=t("7736");r["default"].use(b["a"]);var m=new b["a"].Store({state:{},mutations:{},actions:{},modules:{}}),k=t("5422"),v=t.n(k);t("e9b7"),t("f33e");const g=[{path:"/Login",name:"Login",component:()=>t.e("chunk-3bcfd210").then(t.bind(null,"a55b"))},{path:"/",component:()=>t.e("chunk-19797d59").then(t.bind(null,"1e4b")),children:[{path:"GOODS_LIST",name:"商品列表",component:()=>t.e("chunk-33e29a08").then(t.bind(null,"088a")),meta:{keepAlive:!0}},{path:"GOODS_TYPE",name:"商品种类",component:()=>t.e("chunk-7c135f6b").then(t.bind(null,"77b8"))},{path:"GOODS_BRAND",name:"商品品牌",component:()=>t.e("chunk-5e1711e0").then(t.bind(null,"be26"))},{path:"SHOP_MANAGE",name:"店铺管理",component:()=>t.e("chunk-01b147f1").then(t.bind(null,"3e63"))},{path:"USER_MANAGE",name:"用户管理",component:()=>t.e("chunk-1c56d4e4").then(t.bind(null,"6355"))},{path:"ROLE_MANAGE",name:"角色管理",component:()=>t.e("chunk-4546fe72").then(t.bind(null,"f982"))},{path:"SYSTEM_LOG",name:"系统日志",component:()=>t.e("chunk-f365c476").then(t.bind(null,"054a"))},{path:"GOODS_LOG",name:"商品记录",component:()=>t.e("chunk-0ab08886").then(t.bind(null,"5c89"))},{path:"ADDGOODS",name:"新建商品",component:()=>t.e("chunk-2a2235b7").then(t.bind(null,"5635"))},{path:"/",redirect:"GOODS_LIST"}]}];var y=g;y.forEach(e=>{s.addRoute(e)});t("4ff3");r["default"].use(v.a),r["default"].config.productionTip=!1,new r["default"]({router:s,store:m,render:e=>e(h)}).$mount("#app"),document.title="春分ERP-鲜花"},f33e:function(e,n,t){}});
//# sourceMappingURL=app.10562a88.js.map