index-B5yv6piM.js 4.3 KB

12
  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/report-g-qEaFee.js","assets/vendor-f-XNYvyw.js","assets/index-D71-mty3.js","assets/index-BbW3ufdf.css","assets/index.vue_vue_type_style_index_0_scoped_2125171d_lang-Dtl7QzQB.js","assets/index-BFzIiSSq.css","assets/report-CV1TUHVq.css","assets/role-CZn7-W4w.js","assets/role-DigJ7Zg1.css","assets/system-graph-Cupn3EMV.js","assets/system-graph-DEBfpwg_.css","assets/login-TTOu_xB2.js","assets/login-l82me9bj.css","assets/register-fkch2jDX.js","assets/register-8YOADkA9.css","assets/forget-password-JhTiy08T.js","assets/forget-password-D0cXA08j.css","assets/demo-CnPyk2IL.js","assets/demo-lrkWEdzg.css"])))=>i.map(i=>d[i]);
  2. import{d as _,l as f,r as c,o as h,c as p,w as g,a as v,b as y,L as P,A as b,I as E,e as L,B as T,R as O,C as A,S as w,F as D,f as I,g as R,M as V,T as C,h as $,D as N,i as k,j as B,k as S,m as U,n as z,p as M,q as j,s as q,t as x,U as F,P as H,u as G,v as K,x as W,_ as i,y as J,z as Q,E as X,G as Y,H as l}from"./vendor-f-XNYvyw.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const r of t)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function s(t){const r={};return t.integrity&&(r.integrity=t.integrity),t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?r.credentials="include":t.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(t){if(t.ep)return;t.ep=!0;const r=s(t);fetch(t.href,r)}})();const Z=(e,o)=>{const s=e.__vccOpts||e;for(const[n,t]of o)s[n]=t;return s},ee=_({name:"App",setup(){return{zhCN:f}}}),te={id:"app"};function oe(e,o,s,n,t,r){const u=c("router-view"),m=c("a-config-provider");return h(),p(m,{locale:e.zhCN},{default:g(()=>[v("div",te,[y(u)])]),_:1},8,["locale"])}const re=Z(ee,[["render",oe]]),se=e=>{e.use(P),e.use(b),e.use(E),e.use(L),e.use(T),e.use(O),e.use(A),e.use(w),e.use(D),e.use(I),e.use(R),e.use(V),e.use(C),e.use($),e.use(N),e.use(k),e.use(B),e.use(S),e.use(U),e.use(z),e.use(M),e.use(j),e.use(q),e.use(x),e.use(F),e.use(H),e.use(G),e.config.globalProperties.$message=K,e.config.globalProperties.$notification=W},ne=[{path:"/",name:"main",redirect:"/report",children:[{path:"/report",name:"report",title:"报表中心",component:()=>i(()=>import("./report-g-qEaFee.js"),__vite__mapDeps([0,1,2,3,4,5,6]))},{path:"/role",name:"role",title:"角色管理",component:()=>i(()=>import("./role-CZn7-W4w.js"),__vite__mapDeps([7,1,4,5,8]))},{path:"/system-graph",name:"system-graph",title:"系统架构图",component:()=>i(()=>import("./system-graph-Cupn3EMV.js"),__vite__mapDeps([9,2,1,3,10]))}]},{path:"/login",name:"login",title:"登陆",hidden:!0,component:()=>i(()=>import("./login-TTOu_xB2.js"),__vite__mapDeps([11,1,12]))},{path:"/register/invitation",name:"register",title:"注册",hidden:!0,component:()=>i(()=>import("./register-fkch2jDX.js"),__vite__mapDeps([13,1,14]))},{path:"/forget-password",name:"forget-password",title:"忘记密码",hidden:!0,component:()=>i(()=>import("./forget-password-JhTiy08T.js"),__vite__mapDeps([15,1,16]))},{path:"/:catchAll(.*)",redirect:"/404",hidden:!0},{path:"/demo",name:"demo",hidden:!0,component:()=>i(()=>import("./demo-CnPyk2IL.js"),__vite__mapDeps([17,1,18]))}],ie=["/login","/register","/forget-password","/404","/register/invitation"],d=J({history:Q("/"),scrollBehavior:()=>({y:0}),routes:ne});d.beforeEach((e,o,s)=>{const n=localStorage.getItem("token");if(ie.includes(e.path)){s();return}if(!n){s({path:"/login",query:{redirect:e.fullPath}});return}s()});const ae={namespaced:"app",state:()=>({token:"3mnuehn457873nberuwen",user:{},factoryList:[{value:"001",label:"华为"},{value:"002",label:"谷歌"},{value:"003",label:"中芯国际"},{value:"004",label:"宁德时代"}],permission:[],auth:{}}),mutations:{setToken:(e,o)=>{e.token=o},setUser:(e,o)=>{e.user=o.user,e.permission=o.permission,e.auth=o.auth}},actions:{}},ue=X({modules:{app:ae},state:()=>({}),mutations:{},actions:{},getters:{}}),a=Y(re);a.config.productionTip;l.locale("zh-cn");a.config.globalProperties.$dayjs=l;se(a);a.use(d);a.use(ue);a.mount("#app");export{Z as _};