erp/public/dist/js/app.f221151c.js

2 lines
6.2 KiB
JavaScript
Vendored

(function(e){function n(n){for(var a,r,o=n[0],d=n[1],f=n[2],h=0,i=[];h<o.length;h++)r=o[h],Object.prototype.hasOwnProperty.call(c,r)&&c[r]&&i.push(c[r][0]),c[r]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a]);l&&l(n);while(i.length)i.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],a=!0,r=1;r<t.length;r++){var o=t[r];0!==c[o]&&(a=!1)}a&&(u.splice(n--,1),e=d(d.s=t[0]))}return e}var a={},r={app:0},c={app:0},u=[];function o(e){return d.p+"js/"+({}[e]||e)+"."+{"chunk-2d23156c":"0622f885","chunk-37d81871":"da518dd8","chunk-4a36a8d0":"9136f98d","chunk-4d75363c":"a68f2dc8","chunk-59f3bcab":"45013db3","chunk-5ed10db2":"c024642d","chunk-61dfd850":"65d633aa","chunk-62101cb8":"0d2ed3f5","chunk-7136ffb6":"3fc0cbd6","chunk-744a6ffe":"85ecc07f","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-37d81871":1,"chunk-4a36a8d0":1,"chunk-4d75363c":1,"chunk-59f3bcab":1,"chunk-5ed10db2":1,"chunk-61dfd850":1,"chunk-62101cb8":1,"chunk-7136ffb6":1,"chunk-744a6ffe":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-37d81871":"8c2ae35d","chunk-4a36a8d0":"e437602b","chunk-4d75363c":"f04ac99e","chunk-59f3bcab":"f15bb106","chunk-5ed10db2":"12c276ba","chunk-61dfd850":"94d448e7","chunk-62101cb8":"67947a26","chunk-7136ffb6":"9ae72c1b","chunk-744a6ffe":"fec807f1","chunk-8eb4b592":"9e793ba8","chunk-959f9a24":"ed76f224"}[e]+".css",c=d.p+a,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var f=u[o],h=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(h===a||h===c))return n()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){f=i[o],h=f.getAttribute("data-href");if(h===a||h===c)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var a=n&&n.target&&n.target.src||c,u=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=a,delete r[e],l.parentNode.removeChild(l),t(u)},l.href=c;var p=document.getElementsByTagName("head")[0];p.appendChild(l)})).then((function(){r[e]=0})));var a=c[e];if(0!==a)if(a)n.push(a[2]);else{var u=new Promise((function(n,t){a=c[e]=[n,t]}));n.push(a[2]=u);var f,h=document.createElement("script");h.charset="utf-8",h.timeout=120,d.nc&&h.setAttribute("nonce",d.nc),h.src=o(e);var i=new Error;f=function(n){h.onerror=h.onload=null,clearTimeout(l);var t=c[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",i.name="ChunkLoadError",i.type=a,i.request=r,t[1](i)}c[e]=void 0}};var l=setTimeout((function(){f({type:"timeout",target:h})}),12e4);h.onerror=h.onload=f,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 f=window["webpackJsonp"]=window["webpackJsonp"]||[],h=f.push.bind(f);f.push=n,f=f.slice();for(var i=0;i<f.length;i++)n(f[i]);var l=h;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 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)},c=[],u={},o=u,d=t("0b56"),f=Object(d["a"])(o,r,c,!1,null,null,null),h=f.exports,i=t("a18c"),l=t("7736");a["default"].use(l["a"]);var p=new l["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-61dfd850").then(t.bind(null,"1e4b")),children:[{path:"GOODS_LIST",name:"商品列表",component:()=>t.e("chunk-744a6ffe").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-4d75363c").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:"ADDGOODS",name:"新建商品",component:()=>t.e("chunk-37d81871").then(t.bind(null,"5635"))},{path:"/",redirect:"GOODS_LIST"}]}];var k=m;k.forEach(e=>{i["a"].addRoute(e)});t("4ff3");a["default"].use(b.a),a["default"].config.productionTip=!1,new a["default"]({router:i["a"],store:p,render:e=>e(h)}).$mount("#app")},a18c:function(e,n,t){"use strict";var a=t("8642"),r=t("1ceb");a["default"].use(r["a"]);const c=()=>new r["a"]({scrollBehavior:()=>({y:0})}),u=c();u.beforeEach((e,n,t)=>{const a=localStorage.getItem("token");"Login"===e.name||a?t():t({name:"Login"})}),n["a"]=u},f33e:function(e,n,t){}});
//# sourceMappingURL=app.f221151c.js.map