2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{S as _,_ as f,a as h}from"./SystemHeader-nU89e1N4.js";import{ay as y,b7 as x,b8 as r,aA as b,aD as v,aE as i,bf as E,aI as e,bn as l,aF as g,bm as w,aH as s,cf as n,ce as k}from"./chat-u6cKkSMp.js";import"./ResetPassword.vue_vue_type_script_setup_true_lang-Dbk2wQcz.js";import"./SettingAPIKeyDialog.vue_vue_type_script_setup_true_lang--E5Yj0Bn.js";import"./index-BBfL7ROb.js";const B={class:"app-layout",style:{display:"flex","flex-direction":"column",height:"100vh"}},C={style:{width:"240px","border-right":"1px solid #e5e7eb"}},S={style:{flex:"1",overflow:"auto"}},D=y({__name:"MainLayout",setup(I){const a=x(),{params:{folderId:c},query:{from:t}}=a;r(()=>c==="shared"||t==="systemShare"||t==="systemManage"||a.path.includes("resource-management"));const{user:o,theme:p}=b(),m=r(()=>p.isDefaultTheme());return(d,M)=>{const u=v("el-alert");return i(),E("div",B,[e("div",{class:n(["app-header",m.value?"":"custom-header"]),style:{position:"static"}},[l(o).isExpire()?(i(),g(u,{key:0,title:d.$t("layout.isExpire"),type:"warning",class:"border-b","show-icon":"",closable:!1},null,8,["title"])):w("",!0),s(_)],2),e("div",{class:n(["app-main",l(o).isExpire()?"isExpire":""]),style:{display:"flex",flex:"1",overflow:"hidden"}},[e("div",C,[s(f)]),e("div",S,[s(h)])],2)])}}}),T=k(D,[["__scopeId","data-v-3be8e4ba"]]);export{T as default};
|