erp/public/dist/js/app.230ada2b.js
2022-08-19 17:19:00 +08:00

2 lines
6.2 KiB
JavaScript
Vendored

(function(e){function n(n){for(var c,r,o=n[0],h=n[1],f=n[2],i=0,l=[];i<o.length;i++)r=o[i],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&l.push(a[r][0]),a[r]=0;for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(e[c]=h[c]);d&&d(n);while(l.length)l.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,r=1;r<t.length;r++){var o=t[r];0!==a[o]&&(c=!1)}c&&(u.splice(n--,1),e=h(h.s=t[0]))}return e}var c={},r={app:0},a={app:0},u=[];function o(e){return h.p+"js/"+({}[e]||e)+"."+{"chunk-0f67ac47":"eed43c85","chunk-14ff3ba6":"8728594a","chunk-2d23156c":"6af6d42e","chunk-45019d92":"7c880acf","chunk-50481dc1":"4db40c89","chunk-516d32cc":"5004e058","chunk-5ed10db2":"f7bc8652","chunk-62101cb8":"df8fe332","chunk-7136ffb6":"248bdb7b","chunk-84c0d1fa":"4b6880d0","chunk-8eb4b592":"2e383453","chunk-959f9a24":"5809f600"}[e]+".js"}function h(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,h),t.l=!0,t.exports}h.e=function(e){var n=[],t={"chunk-0f67ac47":1,"chunk-14ff3ba6":1,"chunk-45019d92":1,"chunk-50481dc1":1,"chunk-516d32cc":1,"chunk-5ed10db2":1,"chunk-62101cb8":1,"chunk-7136ffb6":1,"chunk-84c0d1fa":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 c="css/"+({}[e]||e)+"."+{"chunk-0f67ac47":"e437602b","chunk-14ff3ba6":"56e84236","chunk-2d23156c":"31d6cfe0","chunk-45019d92":"b1c3c56f","chunk-50481dc1":"e437602b","chunk-516d32cc":"90c055c4","chunk-5ed10db2":"12c276ba","chunk-62101cb8":"67947a26","chunk-7136ffb6":"9ae72c1b","chunk-84c0d1fa":"47f57404","chunk-8eb4b592":"9e793ba8","chunk-959f9a24":"ed76f224"}[e]+".css",a=h.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var f=u[o],i=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(i===c||i===a))return n()}var l=document.getElementsByTagName("style");for(o=0;o<l.length;o++){f=l[o],i=f.getAttribute("data-href");if(i===c||i===a)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var c=n&&n.target&&n.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete r[e],d.parentNode.removeChild(d),t(u)},d.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(d)})).then((function(){r[e]=0})));var c=a[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=a[e]=[n,t]}));n.push(c[2]=u);var f,i=document.createElement("script");i.charset="utf-8",i.timeout=120,h.nc&&i.setAttribute("nonce",h.nc),i.src=o(e);var l=new Error;f=function(n){i.onerror=i.onload=null,clearTimeout(d);var t=a[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+c+": "+r+")",l.name="ChunkLoadError",l.type=c,l.request=r,t[1](l)}a[e]=void 0}};var d=setTimeout((function(){f({type:"timeout",target:i})}),12e4);i.onerror=i.onload=f,document.head.appendChild(i)}return Promise.all(n)},h.m=e,h.c=c,h.d=function(e,n,t){h.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},h.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.t=function(e,n){if(1&n&&(e=h(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(h.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)h.d(t,c,function(n){return e[n]}.bind(null,c));return t},h.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return h.d(n,"a",n),n},h.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},h.p="",h.oe=function(e){throw console.error(e),e};var f=window["webpackJsonp"]=window["webpackJsonp"]||[],i=f.push.bind(f);f.push=n,f=f.slice();for(var l=0;l<f.length;l++)n(f[l]);var d=i;u.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 c=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)},a=[],u={},o=u,h=t("0b56"),f=Object(h["a"])(o,r,a,!1,null,null,null),i=f.exports,l=t("a18c"),d=t("7736");c["default"].use(d["a"]);var p=new d["a"].Store({state:{},mutations:{},actions:{},modules:{}}),s=t("5422"),b=t.n(s);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-516d32cc").then(t.bind(null,"1e4b")),children:[{path:"GOODS_LIST",name:"商品列表",component:()=>t.e("chunk-45019d92").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-84c0d1fa").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-50481dc1").then(t.bind(null,"054a"))},{path:"GOODS_LOG",name:"商品记录",component:()=>t.e("chunk-0f67ac47").then(t.bind(null,"5c89"))},{path:"ADDGOODS",name:"新建商品",component:()=>t.e("chunk-14ff3ba6").then(t.bind(null,"5635"))},{path:"/",redirect:"GOODS_LIST"}]}];var k=m;k.forEach(e=>{l["a"].addRoute(e)});t("4ff3");c["default"].use(b.a),c["default"].config.productionTip=!1,new c["default"]({router:l["a"],store:p,render:e=>e(i)}).$mount("#app"),document.title="春分ERP-鲜花"},a18c:function(e,n,t){"use strict";var c=t("8642"),r=t("1ceb");c["default"].use(r["a"]);const a=()=>new r["a"]({scrollBehavior:()=>({y:0})}),u=a();u.beforeEach((e,n,t)=>{const c=localStorage.getItem("token");"Login"===e.name||c?t():t({name:"Login"})}),n["a"]=u},f33e:function(e,n,t){}});
//# sourceMappingURL=app.230ada2b.js.map