1 |
- import{h as b,j as v,v as I,_ as h,u as M,a8 as j}from"./index-EwE51S_X.js";import{H as R,F as w,i as N}from"./footer-m4iMc87s.js";import{r as $,g as z}from"./router-SYMbkQDJ.js";import{d as p,ag as g,K as s,e as _,y as m,L as a,j as e,ao as B,u as d,z as C,a as q,av as D,n as x,a2 as F,a1 as H,al as L,o as A,N as E,Z as P}from"./vue-A59npLRR.js";import{m as S}from"./layout-satO-bbM.js";import{u as U}from"./userMounted-UUYQdIa5.js";import"./echarts-cxb9vJr1.js";import"./footer-5mhaxa_5.js";import"./oauth-flw5HISP.js";const J=p({__name:"aside",setup(f){return g(),b(),v(),(n,r)=>null}}),K=p({__name:"main",setup(f){const n=I();return(r,c)=>{const l=s("router-view"),i=s("el-main");return _(),m(i,{class:"layout-main"},{default:a(()=>[e(l,null,{default:a(({Component:o})=>[e(B,{name:d(n).layout.mainAnimation,mode:"out-in"},{default:a(()=>[(_(),m(C(o)))]),_:2},1032,["name"])]),_:1})]),_:1})}}}),O=h(K,[["__scopeId","data-v-bc73de31"]]),T=p({__name:"default",setup(f){const n=q();return D("mainScrollbarRef",n),(r,c)=>{const l=s("el-col"),i=s("el-row"),o=s("el-scrollbar"),t=s("el-container");return _(),m(t,{class:"is-vertical"},{default:a(()=>[e(R),e(o,{style:x(d(S)()),ref_key:"mainScrollbarRef",ref:n},{default:a(()=>[e(i,{class:"frontend-footer-brother",justify:"center"},{default:a(()=>[e(l,{class:"user-layouts",span:16,xs:24},{default:a(()=>[e(J,{class:"hidden-sm-and-down"}),e(O)]),_:1})]),_:1}),e(w)]),_:1},8,["style"])]),_:1})}}}),V=h(T,[["__scopeId","data-v-cb5cf4f0"]]),W=p({__name:"disable",setup(f){return(n,r)=>{const c=s("el-alert"),l=s("el-col"),i=s("el-row"),o=s("el-scrollbar"),t=s("el-container");return _(),m(t,{class:"is-vertical"},{default:a(()=>[e(R),e(o,{style:x(d(S)()),ref:"mainScrollbarRef"},{default:a(()=>[e(i,{class:"frontend-footer-brother",justify:"center"},{default:a(()=>[e(l,{class:"user-layouts",span:16,xs:24},{default:a(()=>[e(c,{center:!0,title:n.$t("Member center disabled"),type:"error"},null,8,["title"])]),_:1})]),_:1}),e(w)]),_:1},8,["style"])]),_:1})}}}),Z=h(W,[["__scopeId","data-v-e004cd2e"]]),ne=p({components:{Default:V,Disable:Z},__name:"user",setup(f){const{t:n}=F(),r=H(),c=g(),l=b(),i=M(),o=v();return L(t=>{o.setActiveRoute(t)}),A(async()=>{const t=await U();if(t.type=="break")return;if(t.type=="reload")return window.location.href=t.url;if(!l.token)return c.push({name:"userLogin"});const y=()=>{if(t.type=="jump")return c.push(t.url);if(r.params.to){const u=JSON.parse(r.params.to);if(u.path!=j){let k=E(u.query)?{}:u.query;$({path:u.path,query:k});return}}if(r.name=="userMainLoading"){let u=z(o.state.viewRoutes);u?c.push({path:u.path}):P({type:"error",message:n("No route found to jump~")})}};i.userInitialize?y():N(y,!0),document.body.clientWidth<1024?o.setShrink(!0):o.setShrink(!1)}),(t,y)=>(_(),m(C(d(o).state.layoutMode)))}});export{ne as default};
|