mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
2 lines
6.2 KiB
JavaScript
Vendored
2 lines
6.2 KiB
JavaScript
Vendored
(function(e){function n(n){for(var c,a,o=n[0],h=n[1],i=n[2],l=0,d=[];l<o.length;l++)a=o[l],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&d.push(r[a][0]),r[a]=0;for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(e[c]=h[c]);f&&f(n);while(d.length)d.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==r[o]&&(c=!1)}c&&(u.splice(n--,1),e=h(h.s=t[0]))}return e}var c={},a={app:0},r={app:0},u=[];function o(e){return h.p+"js/"+({}[e]||e)+"."+{"chunk-0f67ac47":"eed43c85","chunk-14ff3ba6":"8a0304d0","chunk-2d23156c":"6af6d42e","chunk-3ad98ce0":"0fb41c18","chunk-50481dc1":"4db40c89","chunk-516d32cc":"5004e058","chunk-5ed10db2":"f7bc8652","chunk-62101cb8":"df8fe332","chunk-78bf44ba":"c9810140","chunk-84c0d1fa":"4b6880d0","chunk-8eb4b592":"e5b9638c","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-3ad98ce0":1,"chunk-50481dc1":1,"chunk-516d32cc":1,"chunk-5ed10db2":1,"chunk-62101cb8":1,"chunk-78bf44ba":1,"chunk-84c0d1fa":1,"chunk-8eb4b592":1,"chunk-959f9a24":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-0f67ac47":"e437602b","chunk-14ff3ba6":"56e84236","chunk-2d23156c":"31d6cfe0","chunk-3ad98ce0":"c0acee9a","chunk-50481dc1":"e437602b","chunk-516d32cc":"90c055c4","chunk-5ed10db2":"12c276ba","chunk-62101cb8":"67947a26","chunk-78bf44ba":"3a189719","chunk-84c0d1fa":"47f57404","chunk-8eb4b592":"9e793ba8","chunk-959f9a24":"ed76f224"}[e]+".css",r=h.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var i=u[o],l=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(l===c||l===r))return n()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){i=d[o],l=i.getAttribute("data-href");if(l===c||l===r)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var c=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete a[e],f.parentNode.removeChild(f),t(u)},f.href=r;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=u);var i,l=document.createElement("script");l.charset="utf-8",l.timeout=120,h.nc&&l.setAttribute("nonce",h.nc),l.src=o(e);var d=new Error;i=function(n){l.onerror=l.onload=null,clearTimeout(f);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",d.name="ChunkLoadError",d.type=c,d.request=a,t[1](d)}r[e]=void 0}};var f=setTimeout((function(){i({type:"timeout",target:l})}),12e4);l.onerror=l.onload=i,document.head.appendChild(l)}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 i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=n,i=i.slice();for(var d=0;d<i.length;d++)n(i[d]);var f=l;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"),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)},r=[],u={},o=u,h=t("0b56"),i=Object(h["a"])(o,a,r,!1,null,null,null),l=i.exports,d=t("a18c"),f=t("7736");c["default"].use(f["a"]);var p=new f["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-78bf44ba").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-3ad98ce0").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=>{d["a"].addRoute(e)});t("4ff3");c["default"].use(b.a),c["default"].config.productionTip=!1,new c["default"]({router:d["a"],store:p,render:e=>e(l)}).$mount("#app"),document.title="春分ERP-鲜花"},a18c:function(e,n,t){"use strict";var c=t("8642"),a=t("1ceb");c["default"].use(a["a"]);const r=()=>new a["a"]({scrollBehavior:()=>({y:0})}),u=r();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.2c649b2a.js.map
|