V3 Admin Vite
-
+
diff --git a/static/403-d054a635.js b/static/403-abc43d90.js
similarity index 99%
rename from static/403-d054a635.js
rename to static/403-abc43d90.js
index 29c32456..8ecc7129 100644
--- a/static/403-d054a635.js
+++ b/static/403-abc43d90.js
@@ -1 +1 @@
-import{E as r}from"./ErrorPageLayout-2c564332.js";import{l as t,m as l,q as s,H as i,O as h,P as n,V as c,u as p}from"./vue-09136d94.js";import"./index-15431bfa.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},k=s('',50),a=[k];function v(e,o){return t(),l("svg",d,a)}const f={render:v},m=i({__name:"403",setup(e){return(o,u)=>(t(),h(r,null,{default:n(()=>[c(p(f))]),_:1}))}});export{m as default};
+import{E as r}from"./ErrorPageLayout-d9d17e83.js";import{l as t,m as l,q as s,H as i,O as h,P as n,V as c,u as p}from"./vue-09136d94.js";import"./index-a7e4b819.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},k=s('',50),a=[k];function v(e,o){return t(),l("svg",d,a)}const f={render:v},m=i({__name:"403",setup(e){return(o,u)=>(t(),h(r,null,{default:n(()=>[c(p(f))]),_:1}))}});export{m as default};
diff --git a/static/404-993f61ff.js b/static/404-f0c0a3ac.js
similarity index 99%
rename from static/404-993f61ff.js
rename to static/404-f0c0a3ac.js
index a6aaba7d..84dde5ed 100644
--- a/static/404-993f61ff.js
+++ b/static/404-f0c0a3ac.js
@@ -1 +1 @@
-import{E as c}from"./ErrorPageLayout-2c564332.js";import{l as a,m as h,q as e,H as s,O as p,P as M,V as f,u as Z}from"./vue-09136d94.js";import"./index-15431bfa.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const i={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},y=e('',141),d=[y];function r(l,t){return a(),h("svg",i,d)}const v={render:r},_=s({__name:"404",setup(l){return(t,o)=>(a(),p(c,null,{default:M(()=>[f(Z(v))]),_:1}))}});export{_ as default};
+import{E as c}from"./ErrorPageLayout-d9d17e83.js";import{l as a,m as h,q as e,H as s,O as p,P as M,V as f,u as Z}from"./vue-09136d94.js";import"./index-a7e4b819.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const i={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},y=e('',141),d=[y];function r(l,t){return a(),h("svg",i,d)}const v={render:r},_=s({__name:"404",setup(l){return(t,o)=>(a(),p(c,null,{default:M(()=>[f(Z(v))]),_:1}))}});export{_ as default};
diff --git a/static/ErrorPageLayout-2c564332.js b/static/ErrorPageLayout-d9d17e83.js
similarity index 86%
rename from static/ErrorPageLayout-2c564332.js
rename to static/ErrorPageLayout-d9d17e83.js
index 595bfcd7..73dcb92c 100644
--- a/static/ErrorPageLayout-2c564332.js
+++ b/static/ErrorPageLayout-d9d17e83.js
@@ -1 +1 @@
-import{_}from"./index-15431bfa.js";import{ah as e,l as n,m as c,p as d,I as l,V as t,P as o,T as p}from"./vue-09136d94.js";const u={},i={class:"error-page"},f={class:"error-page-svg"};function m(r,v){const a=e("el-button"),s=e("router-link");return n(),c("div",i,[d("div",f,[l(r.$slots,"default",{},void 0,!0)]),t(s,{to:"/"},{default:o(()=>[t(a,{type:"primary"},{default:o(()=>[p("回到首页")]),_:1})]),_:1})])}const h=_(u,[["render",m],["__scopeId","data-v-2fba9562"]]);export{h as E};
+import{_}from"./index-a7e4b819.js";import{ah as e,l as n,m as c,p as d,I as l,V as t,P as o,T as p}from"./vue-09136d94.js";const u={},i={class:"error-page"},f={class:"error-page-svg"};function m(r,v){const a=e("el-button"),s=e("router-link");return n(),c("div",i,[d("div",f,[l(r.$slots,"default",{},void 0,!0)]),t(s,{to:"/"},{default:o(()=>[t(a,{type:"primary"},{default:o(()=>[p("回到首页")]),_:1})]),_:1})])}const h=_(u,[["render",m],["__scopeId","data-v-2fba9562"]]);export{h as E};
diff --git a/static/SwitchRoles-f62d077d.js b/static/SwitchRoles-11841495.js
similarity index 92%
rename from static/SwitchRoles-f62d077d.js
rename to static/SwitchRoles-11841495.js
index e0af05a6..c4f10168 100644
--- a/static/SwitchRoles-f62d077d.js
+++ b/static/SwitchRoles-11841495.js
@@ -1 +1 @@
-import{d as p,_ as u}from"./index-15431bfa.js";import{H as m,r as h,b as v,ah as _,l as S,m as w,p as t,U as f,u as g,V as a,P as V,aH as b,aI as x}from"./vue-09136d94.js";const I=e=>(b("data-v-54e6a169"),e=e(),x(),e),R={class:"switch-roles"},y=I(()=>t("span",null,"切换权限:",-1)),B=m({__name:"SwitchRoles",emits:["change"],setup(e,{emit:r}){const o=p(),s=h(o.roles[0]);return v(s,async l=>{await o.changeRoles(l),r("change")}),(l,n)=>{const c=_("el-radio-button"),d=_("el-radio-group");return S(),w("div",null,[t("div",null,"你的权限:"+f(g(o).roles),1),t("div",R,[y,a(d,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=i=>s.value=i)},{default:V(()=>[a(c,{label:"editor"}),a(c,{label:"admin"})]),_:1},8,["modelValue"])])])}}});const k=u(B,[["__scopeId","data-v-54e6a169"]]);export{k as S};
+import{d as p,_ as u}from"./index-a7e4b819.js";import{H as m,r as h,b as v,ah as _,l as S,m as w,p as t,U as f,u as g,V as a,P as V,aH as b,aI as x}from"./vue-09136d94.js";const I=e=>(b("data-v-54e6a169"),e=e(),x(),e),R={class:"switch-roles"},y=I(()=>t("span",null,"切换权限:",-1)),B=m({__name:"SwitchRoles",emits:["change"],setup(e,{emit:r}){const o=p(),s=h(o.roles[0]);return v(s,async l=>{await o.changeRoles(l),r("change")}),(l,n)=>{const c=_("el-radio-button"),d=_("el-radio-group");return S(),w("div",null,[t("div",null,"你的权限:"+f(g(o).roles),1),t("div",R,[y,a(d,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=i=>s.value=i)},{default:V(()=>[a(c,{label:"editor"}),a(c,{label:"admin"})]),_:1},8,["modelValue"])])])}}});const k=u(B,[["__scopeId","data-v-54e6a169"]]);export{k as S};
diff --git a/static/directive-8b480da9.js b/static/directive-2976cbe3.js
similarity index 95%
rename from static/directive-8b480da9.js
rename to static/directive-2976cbe3.js
index ca7140d5..bb81493f 100644
--- a/static/directive-8b480da9.js
+++ b/static/directive-2976cbe3.js
@@ -1 +1 @@
-import{j as g,_ as y}from"./index-15431bfa.js";import{S as b}from"./SwitchRoles-f62d077d.js";import{H as P,r as x,ah as m,ar as C,l as i,m as _,V as s,p,Q as u,O as o,P as t,T as e,u as f,S as v}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const h=r=>{if(Array.isArray(r)&&r.length>0){const{roles:n}=g();return n.some(c=>r.includes(c))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},V={class:"app-container"},w={class:"margin-top-15"},z=P({__name:"directive",setup(r){const n=x(1),c=()=>{n.value++};return(B,N)=>{const a=m("el-tag"),l=m("el-tab-pane"),k=m("el-tabs"),d=C("permission");return i(),_("div",V,[s(b,{onChange:c}),(i(),_("div",{key:n.value,class:"margin-top-30"},[p("div",null,[u((i(),o(a,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)]),_:1})),[[d,["admin"]]])]),p("div",null,[u((i(),o(a,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)]),_:1})),[[d,["editor"]]])]),p("div",w,[u((i(),o(a,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)]),_:1})),[[d,["admin","editor"]]])])])),(i(),_("div",{key:`checkPermission${n.value}`,class:"margin-top-30"},[s(a,{type:"warning",size:"large"},{default:t(()=>[e(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")]),_:1}),s(k,{type:"border-card",class:"margin-top-15"},{default:t(()=>[f(h)(["admin"])?(i(),o(l,{key:0,label:"admin"},{default:t(()=>[e(" 这里采用了 "),s(a,null,{default:t(()=>[e(`v-if="checkPermission(['admin'])"`)]),_:1}),e(" 所以只有 admin 可以看见这句话 ")]),_:1})):v("",!0),f(h)(["editor"])?(i(),o(l,{key:1,label:"editor"},{default:t(()=>[e(" 这里采用了 "),s(a,null,{default:t(()=>[e(`v-if="checkPermission(['editor'])"`)]),_:1}),e(" 所以只有 editor 可以看见这句话 ")]),_:1})):v("",!0),f(h)(["admin","editor"])?(i(),o(l,{key:2,label:"admin 和 editor"},{default:t(()=>[e(" 这里采用了 "),s(a,null,{default:t(()=>[e(`v-if="checkPermission(['admin', 'editor'])"`)]),_:1}),e(" 所以 admin 和 editor 都可以看见这句话 ")]),_:1})):v("",!0)]),_:1})]))])}}});const T=y(z,[["__scopeId","data-v-6d704b73"]]);export{T as default};
+import{j as g,_ as y}from"./index-a7e4b819.js";import{S as b}from"./SwitchRoles-11841495.js";import{H as P,r as x,ah as m,ar as C,l as i,m as _,V as s,p,Q as u,O as o,P as t,T as e,u as f,S as v}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const h=r=>{if(Array.isArray(r)&&r.length>0){const{roles:n}=g();return n.some(c=>r.includes(c))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},V={class:"app-container"},w={class:"margin-top-15"},z=P({__name:"directive",setup(r){const n=x(1),c=()=>{n.value++};return(B,N)=>{const a=m("el-tag"),l=m("el-tab-pane"),k=m("el-tabs"),d=C("permission");return i(),_("div",V,[s(b,{onChange:c}),(i(),_("div",{key:n.value,class:"margin-top-30"},[p("div",null,[u((i(),o(a,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)]),_:1})),[[d,["admin"]]])]),p("div",null,[u((i(),o(a,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)]),_:1})),[[d,["editor"]]])]),p("div",w,[u((i(),o(a,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)]),_:1})),[[d,["admin","editor"]]])])])),(i(),_("div",{key:`checkPermission${n.value}`,class:"margin-top-30"},[s(a,{type:"warning",size:"large"},{default:t(()=>[e(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")]),_:1}),s(k,{type:"border-card",class:"margin-top-15"},{default:t(()=>[f(h)(["admin"])?(i(),o(l,{key:0,label:"admin"},{default:t(()=>[e(" 这里采用了 "),s(a,null,{default:t(()=>[e(`v-if="checkPermission(['admin'])"`)]),_:1}),e(" 所以只有 admin 可以看见这句话 ")]),_:1})):v("",!0),f(h)(["editor"])?(i(),o(l,{key:1,label:"editor"},{default:t(()=>[e(" 这里采用了 "),s(a,null,{default:t(()=>[e(`v-if="checkPermission(['editor'])"`)]),_:1}),e(" 所以只有 editor 可以看见这句话 ")]),_:1})):v("",!0),f(h)(["admin","editor"])?(i(),o(l,{key:2,label:"admin 和 editor"},{default:t(()=>[e(" 这里采用了 "),s(a,null,{default:t(()=>[e(`v-if="checkPermission(['admin', 'editor'])"`)]),_:1}),e(" 所以 admin 和 editor 都可以看见这句话 ")]),_:1})):v("",!0)]),_:1})]))])}}});const T=y(z,[["__scopeId","data-v-6d704b73"]]);export{T as default};
diff --git a/static/index-15431bfa.js b/static/index-15431bfa.js
deleted file mode 100644
index fe0589ca..00000000
--- a/static/index-15431bfa.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var St=Object.defineProperty;var _t=(e,t,n)=>t in e?St(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(_t(e,typeof t!="symbol"?t+"":t,n),n);import{r as k,w as We,H as Ge,ag as Pe,ah as xe,O as At,P as Tt,u as Ot,l as Ke,V as Rt,ay as Ct,az as Pt,aA as xt,aB as te,b as kt,e as Dt,m as Nt,p as Bt,as as Lt}from"./vue-09136d94.js";import{E as ke,b as K,c as Ft,m as Vt,e as It,g as Mt,i as Ut,f as zt}from"./element-3594ebb6.js";import{V as ye,a as Ht}from"./vxe-e1f17f9a.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const M="v3-admin-vite";class S{}V(S,"TOKEN",`${M}-token-key`),V(S,"CONFIG_LAYOUT",`${M}-config-layout-key`),V(S,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),V(S,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),V(S,"VISITED_VIEWS",`${M}-visited-views-key`),V(S,"CACHED_VIEWS",`${M}-cached-views-key`);const jt=()=>{const e=localStorage.getItem(S.CONFIG_LAYOUT);return e?JSON.parse(e):null},qt=e=>{localStorage.setItem(S.CONFIG_LAYOUT,JSON.stringify(e))},Jt=()=>{localStorage.removeItem(S.CONFIG_LAYOUT)},io=()=>localStorage.getItem(S.SIDEBAR_STATUS),ao=e=>{localStorage.setItem(S.SIDEBAR_STATUS,e)},$t=()=>localStorage.getItem(S.ACTIVE_THEME_NAME),Wt=e=>{localStorage.setItem(S.ACTIVE_THEME_NAME,e)},Gt=()=>{const e=localStorage.getItem(S.VISITED_VIEWS);return JSON.parse(e??"[]")},Kt=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(S.VISITED_VIEWS,JSON.stringify(e))},Xt=()=>{const e=localStorage.getItem(S.CACHED_VIEWS);return JSON.parse(e??"[]")},Yt=e=>{localStorage.setItem(S.CACHED_VIEWS,JSON.stringify(e))},Xe="normal",Zt=[{title:"默认",name:Xe},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],ge=k($t()||Xe),Qt=e=>{ge.value=e},en=e=>{document.documentElement.className=e},tn=()=>{We(()=>{const e=ge.value;en(e),Wt(e)})};function nn(){return{themeList:Zt,activeThemeName:ge,initTheme:tn,setTheme:Qt}}const co=e=>{let t="";try{t=getComputedStyle(document.documentElement).getPropertyValue(e)}catch(n){console.error(n)}return t},uo=(e,t)=>{try{document.documentElement.style.setProperty(e,t)}catch(n){console.error(n)}},rn=()=>{Jt(),location.reload()};var on={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const sn=Ge({__name:"App",setup(e){const{initTheme:t}=nn();return t(),ke({title:"Hello",type:"success",message:Pe("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),ke({title:"破坏性更新",type:"warning",message:Pe("span",{style:"color: teal; cursor: pointer;",onClick:rn},"由于平台 4.1.0 版本新增了多种布局模式,如果第一次出现白屏情况,点击这里或手动前往控制台清理 LocalStorage 缓存数据后刷新页面即可!"),duration:0,position:"bottom-right",offset:150}),(n,r)=>{const o=xe("router-view"),s=xe("ElConfigProvider");return Ke(),At(s,{locale:Ot(on)},{default:Tt(()=>[Rt(o)]),_:1},8,["locale"])}}}),we=Ct(),an="modulepreload",cn=function(e){return"/v3-admin-vite/"+e},De={},v=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=cn(s),s in De)return;De[s]=!0;const i=s.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let m=o.length-1;m>=0;m--){const f=o[m];if(f.href===s&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":an,i||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),i)return new Promise((m,f)=>{u.addEventListener("load",m),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},un=Pt("/v3-admin-vite/"),Ye={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},L=()=>v(()=>import("./index-370ab0e6.js"),["static/index-370ab0e6.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/index.vue_vue_type_script_setup_true_lang-fc9a186a.js","static/vxe-e1f17f9a.js","static/index-97af8e23.css"]),Ze=[{path:"/redirect",component:L,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>v(()=>import("./index-7bc7cd19.js"),["static/index-7bc7cd19.js","static/vue-09136d94.js"])}]},{path:"/403",component:()=>v(()=>import("./403-d054a635.js"),["static/403-d054a635.js","static/ErrorPageLayout-2c564332.js","static/vue-09136d94.js","static/ErrorPageLayout-155a3ef2.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-993f61ff.js"),["static/404-993f61ff.js","static/ErrorPageLayout-2c564332.js","static/vue-09136d94.js","static/ErrorPageLayout-155a3ef2.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-a2cbd53c.js"),["static/index-a2cbd53c.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/index.vue_vue_type_script_setup_true_lang-fc9a186a.js","static/vxe-e1f17f9a.js","static/index-acd5de27.css"]),meta:{hidden:!0}},{path:"/",component:L,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-f333efbb.js"),["static/index-f333efbb.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js","static/index-d3ac1821.css"]),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:L,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-cc357204.js"),["static/index-cc357204.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),name:"UnoCSS",meta:{title:"unocss",svgIcon:"unocss"}}]},{path:"/link",component:L,children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link",meta:{title:"外链",svgIcon:"link"}}]},{path:"/table",component:L,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-d5d507e8.js"),["static/index-d5d507e8.js","static/index-7945ece0.js","static/element-3594ebb6.js","static/vue-09136d94.js","static/vxe-e1f17f9a.js","static/index-c475a2b5.css"]),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-36be640d.js"),["static/index-36be640d.js","static/index-7945ece0.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:L,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-362bcf77.js"),["static/index-362bcf77.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-1be248e6.js"),["static/index-1be248e6.js","static/vue-09136d94.js"]),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-615a58c7.js"),["static/index-615a58c7.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>v(()=>import("./index-d9a07b25.js"),["static/index-d9a07b25.js","static/vue-09136d94.js"]),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-cb8b3c3b.js"),["static/index-cb8b3c3b.js","static/vue-09136d94.js"]),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-0b249b89.js"),["static/index-0b249b89.js","static/vue-09136d94.js"]),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-c1b32fa9.js"),["static/index-c1b32fa9.js","static/vue-09136d94.js"]),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:L,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-c32d63a8.js"),["static/use-fetch-select-c32d63a8.js","static/vue-09136d94.js"]),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-d189eac7.js"),["static/use-fullscreen-loading-d189eac7.js","static/element-3594ebb6.js","static/vue-09136d94.js"]),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}}]}],ln=[{path:"/permission",component:L,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-889ce835.js"),["static/page-889ce835.js","static/vue-09136d94.js","static/SwitchRoles-f62d077d.js","static/SwitchRoles-47de59b3.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js","static/page-52a84664.css"]),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-8b480da9.js"),["static/directive-8b480da9.js","static/SwitchRoles-f62d077d.js","static/vue-09136d94.js","static/SwitchRoles-47de59b3.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js","static/directive-7c8db414.css"]),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],D=xt({history:un,routes:Ze});function Ne(){try{D.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&D.hasRoute(t)&&D.removeRoute(t)})}catch{window.location.reload()}}const dn=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(o=>n.includes(o)):!0},Qe=(e,t)=>{const n=[];return e.forEach(r=>{const o={...r};dn(t,o)&&(o.children&&(o.children=Qe(o.children,t)),n.push(o))}),n},et=te("permission",()=>{const e=k([]),t=k([]);return{routes:e,dynamicRoutes:t,setRoutes:r=>{const o=Qe(ln,r);e.value=Ze.concat(o),t.value=o}}});function fn(){return et(we)}const mn={layoutMode:"left",showSettings:!0,showTagsView:!0,fixedHeader:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showGreyMode:!1,showColorWeakness:!1},pn={...mn,...jt()},tt=te("settings",()=>{const e={};for(const[n,r]of Object.entries(pn)){const o=k(r);e[n]=o,kt(o,()=>{const s=t();qt(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),hn=te("tags-view",()=>{const{cacheTagsView:e}=tt(),t=k(e?Gt():[]),n=k(e?Xt():[]);return We(()=>{Kt(t.value),Yt(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:f=>{const h=t.value.findIndex(y=>y.path===f.path);h!==-1?t.value[h].fullPath!==f.fullPath&&(t.value[h]={...f}):t.value.push({...f})},addCachedView:f=>{var h;typeof f.name=="string"&&(n.value.includes(f.name)||(h=f.meta)!=null&&h.keepAlive&&n.value.push(f.name))},delVisitedView:f=>{const h=t.value.findIndex(y=>y.path===f.path);h!==-1&&t.value.splice(h,1)},delCachedView:f=>{if(typeof f.name!="string")return;const h=n.value.indexOf(f.name);h!==-1&&n.value.splice(h,1)},delOthersVisitedViews:f=>{t.value=t.value.filter(h=>{var y;return((y=h.meta)==null?void 0:y.affix)||h.path===f.path})},delOthersCachedViews:f=>{if(typeof f.name!="string")return;const h=n.value.indexOf(f.name);h!==-1?n.value=n.value.slice(h,h+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(f=>{var h;return(h=f.meta)==null?void 0:h.affix})},delAllCachedViews:()=>{n.value=[]}}});function G(e){for(var t=1;t"u")){i=G({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var p in i)i[p]&&(l+="; "+p,i[p]!==!0&&(l+="="+i[p].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},l=0;lbe.get(S.TOKEN),Be=e=>{be.set(S.TOKEN,e)},Le=()=>{be.remove(S.TOKEN)};function nt(e,t){return function(){return e.apply(t,arguments)}}const{toString:yn}=Object.prototype,{getPrototypeOf:Se}=Object,ne=(e=>t=>{const n=yn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>ne(t)===e),re=e=>t=>typeof t===e,{isArray:H}=Array,q=re("undefined");function gn(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rt=x("ArrayBuffer");function wn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rt(e.buffer),t}const bn=re("string"),O=re("function"),ot=re("number"),oe=e=>e!==null&&typeof e=="object",vn=e=>e===!0||e===!1,X=e=>{if(ne(e)!=="object")return!1;const t=Se(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Sn=x("Date"),_n=x("File"),An=x("Blob"),Tn=x("FileList"),On=e=>oe(e)&&O(e.pipe),Rn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||O(e.append)&&((t=ne(e))==="formdata"||t==="object"&&O(e.toString)&&e.toString()==="[object FormData]"))},Cn=x("URLSearchParams"),Pn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const it=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),at=e=>!q(e)&&e!==it;function me(){const{caseless:e}=at(this)&&this||{},t={},n=(r,o)=>{const s=e&&st(t,o)||o;X(t[s])&&X(r)?t[s]=me(t[s],r):X(r)?t[s]=me({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&O(o)?e[s]=nt(o,n):e[s]=o},{allOwnKeys:r}),e),kn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Nn=(e,t,n,r)=>{let o,s,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Bn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ln=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!ot(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Fn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Se(Uint8Array)),Vn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},In=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Mn=x("HTMLFormElement"),Un=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zn=x("RegExp"),ct=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},Hn=e=>{ct(e,(t,n)=>{if(O(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(O(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jn=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},qn=()=>{},Jn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ce="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",ut={DIGIT:Ve,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Ve},$n=(e=16,t=ut.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Wn(e){return!!(e&&O(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Gn=e=>{const t=new Array(10),n=(r,o)=>{if(oe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return J(r,(i,l)=>{const p=n(i,o+1);!q(p)&&(s[l]=p)}),t[o]=void 0,s}}return r};return n(e,0)},Kn=x("AsyncFunction"),Xn=e=>e&&(oe(e)||O(e))&&O(e.then)&&O(e.catch),c={isArray:H,isArrayBuffer:rt,isBuffer:gn,isFormData:Rn,isArrayBufferView:wn,isString:bn,isNumber:ot,isBoolean:vn,isObject:oe,isPlainObject:X,isUndefined:q,isDate:Sn,isFile:_n,isBlob:An,isRegExp:zn,isFunction:O,isStream:On,isURLSearchParams:Cn,isTypedArray:Fn,isFileList:Tn,forEach:J,merge:me,extend:xn,trim:Pn,stripBOM:kn,inherits:Dn,toFlatObject:Nn,kindOf:ne,kindOfTest:x,endsWith:Bn,toArray:Ln,forEachEntry:Vn,matchAll:In,isHTMLForm:Mn,hasOwnProperty:Fe,hasOwnProp:Fe,reduceDescriptors:ct,freezeMethods:Hn,toObjectSet:jn,toCamelCase:Un,noop:qn,toFiniteNumber:Jn,findKey:st,global:it,isContextDefined:at,ALPHABET:ut,generateString:$n,isSpecCompliantForm:Wn,toJSONObject:Gn,isAsyncFn:Kn,isThenable:Xn};function g(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lt=g.prototype,dt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dt[e]={value:e}});Object.defineProperties(g,dt);Object.defineProperty(lt,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(lt);return c.toFlatObject(e,i,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Yn=null;function pe(e){return c.isPlainObject(e)||c.isArray(e)}function ft(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ie(e,t,n){return e?e.concat(t).map(function(o,s){return o=ft(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Zn(e){return c.isArray(e)&&!e.some(pe)}const Qn=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function se(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!c.isUndefined(E[d])});const r=n.metaTokens,o=n.visitor||m,s=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(o))throw new TypeError("visitor must be a function");function u(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!p&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?p&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function m(a,d,E){let w=a;if(a&&!E&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&Zn(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(w=c.toArray(a)))return d=ft(d),w.forEach(function(T,b){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Ie([d],b,s):i===null?d:d+"[]",u(T))}),!1}return pe(a)?!0:(t.append(Ie(E,d,s),u(a)),!1)}const f=[],h=Object.assign(Qn,{defaultVisitor:m,convertValue:u,isVisitable:pe});function y(a,d){if(!c.isUndefined(a)){if(f.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(a),c.forEach(a,function(w,A){(!(c.isUndefined(w)||w===null)&&o.call(t,w,c.isString(A)?A.trim():A,d,h))===!0&&y(w,d?d.concat(A):[A])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&se(e,this,t)}const mt=_e.prototype;mt.append=function(t,n){this._pairs.push([t,n])};mt.toString=function(t){const n=t?function(r){return t.call(this,r,Me)}:Me;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function er(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pt(e,t,n){if(!t)return e;const r=n&&n.encode||er,o=n&&n.serialize;let s;if(o?s=o(t,n):s=c.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class tr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ue=tr,ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nr=typeof URLSearchParams<"u"?URLSearchParams:_e,rr=typeof FormData<"u"?FormData:null,or=typeof Blob<"u"?Blob:null,sr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ir=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),P={isBrowser:!0,classes:{URLSearchParams:nr,FormData:rr,Blob:or},isStandardBrowserEnv:sr,isStandardBrowserWebWorkerEnv:ir,protocols:["http","https","file","blob","url","data"]};function ar(e,t){return se(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return P.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function cr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ur(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&c.isArray(o)?o.length:i,p?(c.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!c.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&c.isArray(o[i])&&(o[i]=ur(o[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,o)=>{t(cr(r),o,n,0)}),n}return null}const lr={"Content-Type":void 0};function dr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ie={transitional:ht,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return o&&o?JSON.stringify(Et(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ar(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return se(l?{"files[]":t}:t,p&&new p,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),dr(t)):t}],transformResponse:[function(t){const n=this.transitional||ie.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?g.from(l,g.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(t){ie.headers[t]={}});c.forEach(["post","put","patch"],function(t){ie.headers[t]=c.merge(lr)});const Ae=ie,fr=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mr=e=>{const t={};let n,r,o;return e&&e.split(`
-`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&fr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function Y(e){return e===!1||e==null?e:c.isArray(e)?e.map(Y):String(e)}function pr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const hr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ue(e,t,n,r,o){if(c.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Er(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ae{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(l,p,u){const m=j(p);if(!m)throw new Error("header name must be a non-empty string");const f=c.findKey(o,m);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||p]=Y(l))}const i=(l,p)=>c.forEach(l,(u,m)=>s(u,m,p));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!hr(t)?i(mr(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=j(t),t){const r=c.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return pr(o);if(c.isFunction(n))return n.call(this,o,r);if(c.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ue(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=j(i),i){const l=c.findKey(r,i);l&&(!n||ue(r,r[l],l,n))&&(delete r[l],o=!0)}}return c.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ue(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return c.forEach(this,(o,s)=>{const i=c.findKey(r,s);if(i){n[i]=Y(o),delete n[s];return}const l=t?Er(s):String(s).trim();l!==s&&delete n[s],n[l]=Y(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=j(i);r[l]||(yr(o,i),r[l]=!0)}return c.isArray(t)?t.forEach(s):s(t),this}}ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.freezeMethods(ae.prototype);c.freezeMethods(ae);const N=ae;function le(e,t){const n=this||Ae,r=t||n,o=N.from(r.headers);let s=r.data;return c.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function yt(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits($,g,{__CANCEL__:!0});function gr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wr=P.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,l){const p=[];p.push(n+"="+encodeURIComponent(r)),c.isNumber(o)&&p.push("expires="+new Date(o).toGMTString()),c.isString(s)&&p.push("path="+s),c.isString(i)&&p.push("domain="+i),l===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function br(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function gt(e,t){return e&&!br(t)?vr(e,t):t}const Sr=P.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=c.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function _r(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ar(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(p){const u=Date.now(),m=r[s];i||(i=u),n[o]=p,r[o]=u;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,p=r(l),u=s<=i;n=s;const m={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:p||void 0,estimated:p&&i&&u?(i-s)/p:void 0,event:o};m[t?"download":"upload"]=!0,e(m)}}const Tr=typeof XMLHttpRequest<"u",Or=Tr&&function(e){return new Promise(function(n,r){let o=e.data;const s=N.from(e.headers).normalize(),i=e.responseType;let l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}c.isFormData(o)&&(P.isStandardBrowserEnv||P.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+a))}const m=gt(e.baseURL,e.url);u.open(e.method.toUpperCase(),pt(m,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const y=N.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};gr(function(w){n(w),p()},function(w){r(w),p()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new g("Request aborted",g.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||ht;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),r(new g(a,d.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,u)),u=null},P.isStandardBrowserEnv){const y=(e.withCredentials||Sr(m))&&e.xsrfCookieName&&wr.read(e.xsrfCookieName);y&&s.set(e.xsrfHeaderName,y)}o===void 0&&s.setContentType(null),"setRequestHeader"in u&&c.forEach(s.toJSON(),function(a,d){u.setRequestHeader(d,a)}),c.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",He(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",He(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{u&&(r(!y||y.type?new $(null,e,u):y),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=_r(m);if(h&&P.protocols.indexOf(h)===-1){r(new g("Unsupported protocol "+h+":",g.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Z={http:Yn,xhr:Or};c.forEach(Z,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rr={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof N?e.toJSON():e;function z(e,t){t=t||{};const n={};function r(u,m,f){return c.isPlainObject(u)&&c.isPlainObject(m)?c.merge.call({caseless:f},u,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function o(u,m,f){if(c.isUndefined(m)){if(!c.isUndefined(u))return r(void 0,u,f)}else return r(u,m,f)}function s(u,m){if(!c.isUndefined(m))return r(void 0,m)}function i(u,m){if(c.isUndefined(m)){if(!c.isUndefined(u))return r(void 0,u)}else return r(void 0,m)}function l(u,m,f){if(f in t)return r(u,m);if(f in e)return r(void 0,u)}const p={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,m)=>o(qe(u),qe(m),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=p[m]||o,h=f(e[m],t[m],m);c.isUndefined(h)&&f!==l||(n[m]=h)}),n}const wt="1.4.0",Te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Je={};Te.transitional=function(t,n,r){function o(s,i){return"[Axios v"+wt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,l)=>{if(t===!1)throw new g(o(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!Je[i]&&(Je[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,l):!0}};function Cr(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const l=e[s],p=l===void 0||i(l,s,e);if(p!==!0)throw new g("option "+s+" must be "+p,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const he={assertOptions:Cr,validators:Te},B=he.validators;class ee{constructor(t){this.defaults=t,this.interceptors={request:new Ue,response:new Ue}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=z(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&he.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),o!=null&&(c.isFunction(o)?n.paramsSerializer={serialize:o}:he.assertOptions(o,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&c.merge(s.common,s[n.method]),i&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete s[a]}),n.headers=N.concat(i,s);const l=[];let p=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(p=p&&d.synchronous,l.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let m,f=0,h;if(!p){const a=[je.bind(this),void 0];for(a.unshift.apply(a,l),a.push.apply(a,u),h=a.length,m=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,l){r.reason||(r.reason=new $(s,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Oe(function(o){t=o}),cancel:t}}}const Pr=Oe;function xr(e){return function(n){return e.apply(null,n)}}function kr(e){return c.isObject(e)&&e.isAxiosError===!0}const Ee={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ee).forEach(([e,t])=>{Ee[t]=e});const Dr=Ee;function bt(e){const t=new Q(e),n=nt(Q.prototype.request,t);return c.extend(n,Q.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return bt(z(e,o))},n}const _=bt(Ae);_.Axios=Q;_.CanceledError=$;_.CancelToken=Pr;_.isCancel=yt;_.VERSION=wt;_.toFormData=se;_.AxiosError=g;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=xr;_.isAxiosError=kr;_.mergeConfig=z;_.AxiosHeaders=N;_.formToJSON=e=>Et(c.isHTMLForm(e)?new FormData(e):e);_.HttpStatusCode=Dr;_.default=_;const Nr=_;function $e(){Ce().logout(),location.reload()}function Br(){const e=Nr.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var s;const n=t.data,r=(s=t.request)==null?void 0:s.responseType;if(r==="blob"||r==="arraybuffer")return n;const o=n.code;if(o===void 0)return K.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(o){case 0:return n;case 401:return $e();default:return K.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(Ft(t,"response.status")){case 400:t.message="请求错误";break;case 401:$e();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return K.error(t.message),Promise.reject(t)}),e}function Lr(e){return function(t){const n=ve(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1",data:{}},o=Vt(r,t);return e(o)}}const Fr=Br(),Re=Lr(Fr);function lo(){return Re({url:"login/code",method:"get"})}function Vr(e){return Re({url:"users/login",method:"post",data:e})}function Ir(){return Re({url:"users/info",method:"get"})}const Mr=te("user",()=>{const e=k(ve()||""),t=k([]),n=k(""),r=et(),o=hn(),s=tt(),i=y=>{t.value=y},l=async({username:y,password:a,code:d})=>{const{data:E}=await Vr({username:y,password:a,code:d});Be(E.token),e.value=E.token},p=async()=>{var a;const{data:y}=await Ir();n.value=y.username,t.value=((a=y.roles)==null?void 0:a.length)>0?y.roles:Ye.defaultRoles},u=async y=>{const a="token-"+y;e.value=a,Be(a),await p(),r.setRoutes(t.value),Ne(),r.dynamicRoutes.forEach(d=>{D.addRoute(d)}),h()},m=()=>{Le(),e.value="",t.value=[],Ne(),h()},f=()=>{Le(),e.value="",t.value=[]},h=()=>{s.cacheTagsView||(o.delAllVisitedViews(),o.delAllCachedViews())};return{token:e,roles:t,username:n,setRoles:i,login:l,getInfo:p,changeRoles:u,logout:m,resetToken:f}});function Ce(){return Mr(we)}const Ur=["/login"],zr=[],Hr=e=>Ur.indexOf(e.path)!==-1||zr.indexOf(e.name)!==-1;var vt={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(It,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(a){var d,E;for(d in a)E=a[d],E!==void 0&&a.hasOwnProperty(d)&&(r[d]=E);return this},n.status=null,n.set=function(a){var d=n.isStarted();a=o(a,r.minimum,1),n.status=a===1?null:a;var E=n.render(!d),w=E.querySelector(r.barSelector),A=r.speed,T=r.easing;return E.offsetWidth,l(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),p(w,i(a,A,T)),a===1?(p(E,{transition:"none",opacity:1}),E.offsetWidth,setTimeout(function(){p(E,{transition:"all "+A+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},A)},A)):setTimeout(b,A)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var d=n.status;return d?(typeof a!="number"&&(a=(1-d)*o(Math.random()*d,.1,.95)),d=o(d+a,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,d=0;n.promise=function(E){return!E||E.state()==="resolved"?this:(d===0&&n.start(),a++,d++,E.always(function(){d--,d===0?(a=0,n.done()):n.set((a-d)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var E=d.querySelector(r.barSelector),w=a?"-100":s(n.status||0),A=document.querySelector(r.parent),T;return p(E,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&y(T)),A!=document.body&&m(A,"nprogress-custom-parent"),A.appendChild(d),d},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&y(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,d="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return d+"Perspective"in a?"translate3d":d+"Transform"in a?"translate":"margin"};function o(a,d,E){return aE?E:a}function s(a){return(-1+a)*100}function i(a,d,E){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+s(a)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+s(a)+"%,0)"}:w={"margin-left":s(a)+"%"},w.transition="all "+d+"ms "+E,w}var l=function(){var a=[];function d(){var E=a.shift();E&&E(d)}return function(E){a.push(E),a.length==1&&d()}}(),p=function(){var a=["Webkit","O","Moz","ms"],d={};function E(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(R,C){return C.toUpperCase()})}function w(b){var R=document.body.style;if(b in R)return b;for(var C=a.length,I=b.charAt(0).toUpperCase()+b.slice(1),F;C--;)if(F=a[C]+I,F in R)return F;return b}function A(b){return b=E(b),d[b]||(d[b]=w(b))}function T(b,R,C){R=A(R),b.style[R]=C}return function(b,R){var C=arguments,I,F;if(C.length==2)for(I in R)F=R[I],F!==void 0&&R.hasOwnProperty(I)&&T(b,I,F);else T(b,C[1],C[2])}}();function u(a,d){var E=typeof a=="string"?a:h(a);return E.indexOf(" "+d+" ")>=0}function m(a,d){var E=h(a),w=E+d;u(E,d)||(a.className=w.substring(1))}function f(a,d){var E=h(a),w;u(a,d)&&(w=E.replace(" "+d+" "," "),a.className=w.substring(1,w.length-1))}function h(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function y(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(vt);var jr=vt.exports;const U=Mt(jr);U.configure({showSpinner:!1});D.beforeEach(async(e,t,n)=>{U.start();const r=Ce(),o=fn();if(ve())if(e.path==="/login")n({path:"/"}),U.done();else if(r.roles.length===0)try{if(Ye.async){await r.getInfo();const s=r.roles;o.setRoutes(s)}o.dynamicRoutes.forEach(s=>{D.addRoute(s)}),n({...e,replace:!0})}catch(s){r.resetToken(),K.error(s.message||"路由守卫过程发生错误"),n("/login"),U.done()}else n();else Hr(e)?n():(n("/login"),U.done())});D.afterEach(()=>{U.done()});const qr={class:"svg-icon","aria-hidden":"true"},Jr=["href"],$r=Ge({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Dt(()=>`#${t.prefix}-${t.name}`);return(r,o)=>(Ke(),Nt("svg",qr,[Bt("use",{href:n.value},null,8,Jr)]))}});const Wr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Gr=Wr($r,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function Kr(e){e.component("SvgIcon",Gr)}function Xr(e){e.use(Ut)}function Yr(e){for(const[t,n]of Object.entries(zt))e.component(t,n)}ye.use(Ht);ye.setup({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0},columnConfig:{resizable:!1},align:"center",headerAlign:"center",rowId:"_VXE_ID"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function Zr(e){e.use(ye)}function Qr(e){Xr(e),Yr(e),Zr(e)}const eo={mounted(e,t){var o;const{value:n}=t,{roles:r}=Ce();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((o=e.parentNode)==null||o.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function to(e){e.directive("permission",eo)}const W=Lt(sn);Qr(W);Kr(W);to(W);W.use(we).use(D);D.isReady().then(()=>{W.mount("#app")});export{Wr as _,tt as a,co as b,et as c,Mr as d,uo as e,lo as f,io as g,nn as h,Re as i,Ce as j,rn as r,ao as s,hn as u};
diff --git a/static/index-615a58c7.js b/static/index-3ede200d.js
similarity index 83%
rename from static/index-615a58c7.js
rename to static/index-3ede200d.js
index de997312..dd9c9872 100644
--- a/static/index-615a58c7.js
+++ b/static/index-3ede200d.js
@@ -1 +1 @@
-import{_ as n}from"./index-15431bfa.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const x=n(_,[["render",m]]);export{x as default};
+import{_ as n}from"./index-a7e4b819.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const x=n(_,[["render",m]]);export{x as default};
diff --git a/static/index-d5d507e8.js b/static/index-80a96034.js
similarity index 97%
rename from static/index-d5d507e8.js
rename to static/index-80a96034.js
index 732189be..53b44c14 100644
--- a/static/index-d5d507e8.js
+++ b/static/index-80a96034.js
@@ -1 +1 @@
-import{c as K,u as L,d as W,g as X}from"./index-7945ece0.js";import{B as Y,r as Z,C as ee,D as ae,F as te,G as le,b as D,H as ne}from"./element-3594ebb6.js";import{_ as z,H as oe,r as b,b as re,ah as i,ar as se,l as m,m as ie,Q as E,O as g,P as a,V as e,u as r,T as s,p as k,U as ue,S as de}from"./vue-09136d94.js";import{_ as ce}from"./index-15431bfa.js";import"./vxe-e1f17f9a.js";const pe={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function me(S={}){const c=z({...pe,...S});return{paginationData:c,handleCurrentChange:C=>{c.currentPage=C},handleSizeChange:C=>{c.pageSize=C}}}const _e={class:"app-container"},fe={class:"toolbar-wrapper"},ge={class:"table-wrapper"},ve={class:"pager-wrapper"},he=oe({name:"ElementPlus",__name:"index",setup(S){const c=b(!1),{paginationData:o,handleCurrentChange:P,handleSizeChange:C}=me(),_=b(!1),T=b(null),u=z({username:"",password:""}),N=z({username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]}),q=()=>{var n;(n=T.value)==null||n.validate((l,y)=>{l?v.value===void 0?K(u).then(()=>{D.success("新增成功"),h()}).finally(()=>{_.value=!1}):L({id:v.value,username:u.username}).then(()=>{D.success("修改成功"),h()}).finally(()=>{_.value=!1}):console.error("表单校验不通过",y)})},H=()=>{v.value=void 0,u.username="",u.password=""},I=n=>{ne.confirm(`正在删除用户:${n.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{W(n.id).then(()=>{D.success("删除成功"),h()})})},v=b(void 0),M=n=>{v.value=n.id,u.username=n.username,_.value=!0},x=b([]),B=b(null),f=z({username:"",phone:""}),h=()=>{c.value=!0,X({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(n=>{o.total=n.data.total,x.value=n.data.list}).catch(()=>{x.value=[]}).finally(()=>{c.value=!1})},U=()=>{o.currentPage===1?h():o.currentPage=1},j=()=>{var n;(n=B.value)==null||n.resetFields(),U()};return re([()=>o.currentPage,()=>o.pageSize],h,{immediate:!0}),(n,l)=>{const y=i("el-input"),w=i("el-form-item"),d=i("el-button"),F=i("el-form"),R=i("el-card"),$=i("el-tooltip"),p=i("el-table-column"),V=i("el-tag"),G=i("el-table"),O=i("el-pagination"),Q=i("el-dialog"),A=se("loading");return m(),ie("div",_e,[E((m(),g(R,{shadow:"never",class:"search-wrapper"},{default:a(()=>[e(F,{ref_key:"searchFormRef",ref:B,inline:!0,model:f},{default:a(()=>[e(w,{prop:"username",label:"用户名"},{default:a(()=>[e(y,{modelValue:f.username,"onUpdate:modelValue":l[0]||(l[0]=t=>f.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(w,{prop:"phone",label:"手机号"},{default:a(()=>[e(y,{modelValue:f.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>f.phone=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(w,null,{default:a(()=>[e(d,{type:"primary",icon:r(Y),onClick:U},{default:a(()=>[s("查询")]),_:1},8,["icon"]),e(d,{icon:r(Z),onClick:j},{default:a(()=>[s("重置")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[A,c.value]]),E((m(),g(R,{shadow:"never"},{default:a(()=>[k("div",fe,[k("div",null,[e(d,{type:"primary",icon:r(ee),onClick:l[2]||(l[2]=t=>_.value=!0)},{default:a(()=>[s("新增用户")]),_:1},8,["icon"]),e(d,{type:"danger",icon:r(ae)},{default:a(()=>[s("批量删除")]),_:1},8,["icon"])]),k("div",null,[e($,{content:"下载"},{default:a(()=>[e(d,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),e($,{content:"刷新当前页"},{default:a(()=>[e(d,{type:"primary",icon:r(le),circle:"",onClick:h},null,8,["icon"])]),_:1})])]),k("div",ge,[e(G,{data:x.value},{default:a(()=>[e(p,{type:"selection",width:"50",align:"center"}),e(p,{prop:"username",label:"用户名",align:"center"}),e(p,{prop:"roles",label:"角色",align:"center"},{default:a(t=>[t.row.roles==="admin"?(m(),g(V,{key:0,effect:"plain"},{default:a(()=>[s("admin")]),_:1})):(m(),g(V,{key:1,type:"warning",effect:"plain"},{default:a(()=>[s(ue(t.row.roles),1)]),_:2},1024))]),_:1}),e(p,{prop:"phone",label:"手机号",align:"center"}),e(p,{prop:"email",label:"邮箱",align:"center"}),e(p,{prop:"status",label:"状态",align:"center"},{default:a(t=>[t.row.status?(m(),g(V,{key:0,type:"success",effect:"plain"},{default:a(()=>[s("启用")]),_:1})):(m(),g(V,{key:1,type:"danger",effect:"plain"},{default:a(()=>[s("禁用")]),_:1}))]),_:1}),e(p,{prop:"createTime",label:"创建时间",align:"center"}),e(p,{fixed:"right",label:"操作",width:"150",align:"center"},{default:a(t=>[e(d,{type:"primary",text:"",bg:"",size:"small",onClick:J=>M(t.row)},{default:a(()=>[s("修改")]),_:2},1032,["onClick"]),e(d,{type:"danger",text:"",bg:"",size:"small",onClick:J=>I(t.row)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),k("div",ve,[e(O,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(C),onCurrentChange:r(P)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[A,c.value]]),e(Q,{modelValue:_.value,"onUpdate:modelValue":l[6]||(l[6]=t=>_.value=t),title:v.value===void 0?"新增用户":"修改用户",onClose:H,width:"30%"},{footer:a(()=>[e(d,{onClick:l[5]||(l[5]=t=>_.value=!1)},{default:a(()=>[s("取消")]),_:1}),e(d,{type:"primary",onClick:q},{default:a(()=>[s("确认")]),_:1})]),default:a(()=>[e(F,{ref_key:"formRef",ref:T,model:u,rules:N,"label-width":"100px","label-position":"left"},{default:a(()=>[e(w,{prop:"username",label:"用户名"},{default:a(()=>[e(y,{modelValue:u.username,"onUpdate:modelValue":l[3]||(l[3]=t=>u.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),v.value===void 0?(m(),g(w,{key:0,prop:"password",label:"密码"},{default:a(()=>[e(y,{modelValue:u.password,"onUpdate:modelValue":l[4]||(l[4]=t=>u.password=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):de("",!0)]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])])}}});const Ve=ce(he,[["__scopeId","data-v-2a953a43"]]);export{Ve as default};
+import{c as K,u as L,d as W,g as X}from"./index-a09343dd.js";import{B as Y,r as Z,C as ee,D as ae,F as te,G as le,b as D,H as ne}from"./element-3594ebb6.js";import{_ as z,H as oe,r as b,b as re,ah as i,ar as se,l as m,m as ie,Q as E,O as g,P as a,V as e,u as r,T as s,p as k,U as ue,S as de}from"./vue-09136d94.js";import{_ as ce}from"./index-a7e4b819.js";import"./vxe-e1f17f9a.js";const pe={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function me(S={}){const c=z({...pe,...S});return{paginationData:c,handleCurrentChange:C=>{c.currentPage=C},handleSizeChange:C=>{c.pageSize=C}}}const _e={class:"app-container"},fe={class:"toolbar-wrapper"},ge={class:"table-wrapper"},ve={class:"pager-wrapper"},he=oe({name:"ElementPlus",__name:"index",setup(S){const c=b(!1),{paginationData:o,handleCurrentChange:P,handleSizeChange:C}=me(),_=b(!1),T=b(null),u=z({username:"",password:""}),N=z({username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]}),q=()=>{var n;(n=T.value)==null||n.validate((l,y)=>{l?v.value===void 0?K(u).then(()=>{D.success("新增成功"),h()}).finally(()=>{_.value=!1}):L({id:v.value,username:u.username}).then(()=>{D.success("修改成功"),h()}).finally(()=>{_.value=!1}):console.error("表单校验不通过",y)})},H=()=>{v.value=void 0,u.username="",u.password=""},I=n=>{ne.confirm(`正在删除用户:${n.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{W(n.id).then(()=>{D.success("删除成功"),h()})})},v=b(void 0),M=n=>{v.value=n.id,u.username=n.username,_.value=!0},x=b([]),B=b(null),f=z({username:"",phone:""}),h=()=>{c.value=!0,X({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(n=>{o.total=n.data.total,x.value=n.data.list}).catch(()=>{x.value=[]}).finally(()=>{c.value=!1})},U=()=>{o.currentPage===1?h():o.currentPage=1},j=()=>{var n;(n=B.value)==null||n.resetFields(),U()};return re([()=>o.currentPage,()=>o.pageSize],h,{immediate:!0}),(n,l)=>{const y=i("el-input"),w=i("el-form-item"),d=i("el-button"),F=i("el-form"),R=i("el-card"),$=i("el-tooltip"),p=i("el-table-column"),V=i("el-tag"),G=i("el-table"),O=i("el-pagination"),Q=i("el-dialog"),A=se("loading");return m(),ie("div",_e,[E((m(),g(R,{shadow:"never",class:"search-wrapper"},{default:a(()=>[e(F,{ref_key:"searchFormRef",ref:B,inline:!0,model:f},{default:a(()=>[e(w,{prop:"username",label:"用户名"},{default:a(()=>[e(y,{modelValue:f.username,"onUpdate:modelValue":l[0]||(l[0]=t=>f.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(w,{prop:"phone",label:"手机号"},{default:a(()=>[e(y,{modelValue:f.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>f.phone=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(w,null,{default:a(()=>[e(d,{type:"primary",icon:r(Y),onClick:U},{default:a(()=>[s("查询")]),_:1},8,["icon"]),e(d,{icon:r(Z),onClick:j},{default:a(()=>[s("重置")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[A,c.value]]),E((m(),g(R,{shadow:"never"},{default:a(()=>[k("div",fe,[k("div",null,[e(d,{type:"primary",icon:r(ee),onClick:l[2]||(l[2]=t=>_.value=!0)},{default:a(()=>[s("新增用户")]),_:1},8,["icon"]),e(d,{type:"danger",icon:r(ae)},{default:a(()=>[s("批量删除")]),_:1},8,["icon"])]),k("div",null,[e($,{content:"下载"},{default:a(()=>[e(d,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),e($,{content:"刷新当前页"},{default:a(()=>[e(d,{type:"primary",icon:r(le),circle:"",onClick:h},null,8,["icon"])]),_:1})])]),k("div",ge,[e(G,{data:x.value},{default:a(()=>[e(p,{type:"selection",width:"50",align:"center"}),e(p,{prop:"username",label:"用户名",align:"center"}),e(p,{prop:"roles",label:"角色",align:"center"},{default:a(t=>[t.row.roles==="admin"?(m(),g(V,{key:0,effect:"plain"},{default:a(()=>[s("admin")]),_:1})):(m(),g(V,{key:1,type:"warning",effect:"plain"},{default:a(()=>[s(ue(t.row.roles),1)]),_:2},1024))]),_:1}),e(p,{prop:"phone",label:"手机号",align:"center"}),e(p,{prop:"email",label:"邮箱",align:"center"}),e(p,{prop:"status",label:"状态",align:"center"},{default:a(t=>[t.row.status?(m(),g(V,{key:0,type:"success",effect:"plain"},{default:a(()=>[s("启用")]),_:1})):(m(),g(V,{key:1,type:"danger",effect:"plain"},{default:a(()=>[s("禁用")]),_:1}))]),_:1}),e(p,{prop:"createTime",label:"创建时间",align:"center"}),e(p,{fixed:"right",label:"操作",width:"150",align:"center"},{default:a(t=>[e(d,{type:"primary",text:"",bg:"",size:"small",onClick:J=>M(t.row)},{default:a(()=>[s("修改")]),_:2},1032,["onClick"]),e(d,{type:"danger",text:"",bg:"",size:"small",onClick:J=>I(t.row)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),k("div",ve,[e(O,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(C),onCurrentChange:r(P)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[A,c.value]]),e(Q,{modelValue:_.value,"onUpdate:modelValue":l[6]||(l[6]=t=>_.value=t),title:v.value===void 0?"新增用户":"修改用户",onClose:H,width:"30%"},{footer:a(()=>[e(d,{onClick:l[5]||(l[5]=t=>_.value=!1)},{default:a(()=>[s("取消")]),_:1}),e(d,{type:"primary",onClick:q},{default:a(()=>[s("确认")]),_:1})]),default:a(()=>[e(F,{ref_key:"formRef",ref:T,model:u,rules:N,"label-width":"100px","label-position":"left"},{default:a(()=>[e(w,{prop:"username",label:"用户名"},{default:a(()=>[e(y,{modelValue:u.username,"onUpdate:modelValue":l[3]||(l[3]=t=>u.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),v.value===void 0?(m(),g(w,{key:0,prop:"password",label:"密码"},{default:a(()=>[e(y,{modelValue:u.password,"onUpdate:modelValue":l[4]||(l[4]=t=>u.password=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):de("",!0)]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])])}}});const Ve=ce(he,[["__scopeId","data-v-2a953a43"]]);export{Ve as default};
diff --git a/static/index-f333efbb.js b/static/index-873c5363.js
similarity index 91%
rename from static/index-f333efbb.js
rename to static/index-873c5363.js
index 27660f93..6c452538 100644
--- a/static/index-f333efbb.js
+++ b/static/index-873c5363.js
@@ -1 +1 @@
-import{_ as c,d as a}from"./index-15431bfa.js";import{ah as s,l as n,m as _,V as r,H as i,O as d,R as p,u as m}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const l={},u={class:"app-container center"};function f(t,o){const e=s("el-empty");return n(),_("div",u,[r(e,{description:"Admin 权限可见"})])}const v=c(l,[["render",f],["__scopeId","data-v-540a7bcc"]]);const y={},x={class:"app-container center"};function h(t,o){const e=s("el-empty");return n(),_("div",x,[r(e,{description:"Editor 权限可见"})])}const b=c(y,[["render",h],["__scopeId","data-v-e677b768"]]),S=i({__name:"index",setup(t){const e=a().roles.includes("admin");return(A,E)=>(n(),d(p(m(e)?v:b)))}});export{S as default};
+import{_ as c,d as a}from"./index-a7e4b819.js";import{ah as s,l as n,m as _,V as r,H as i,O as d,R as p,u as m}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const l={},u={class:"app-container center"};function f(t,o){const e=s("el-empty");return n(),_("div",u,[r(e,{description:"Admin 权限可见"})])}const v=c(l,[["render",f],["__scopeId","data-v-540a7bcc"]]);const y={},x={class:"app-container center"};function h(t,o){const e=s("el-empty");return n(),_("div",x,[r(e,{description:"Editor 权限可见"})])}const b=c(y,[["render",h],["__scopeId","data-v-e677b768"]]),S=i({__name:"index",setup(t){const e=a().roles.includes("admin");return(A,E)=>(n(),d(p(m(e)?v:b)))}});export{S as default};
diff --git a/static/index-7945ece0.js b/static/index-a09343dd.js
similarity index 79%
rename from static/index-7945ece0.js
rename to static/index-a09343dd.js
index 2fea2ea6..3ff20042 100644
--- a/static/index-7945ece0.js
+++ b/static/index-a09343dd.js
@@ -1 +1 @@
-import{i as e}from"./index-15431bfa.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u};
+import{i as e}from"./index-a7e4b819.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u};
diff --git a/static/index-a7e4b819.js b/static/index-a7e4b819.js
new file mode 100644
index 00000000..84b943c4
--- /dev/null
+++ b/static/index-a7e4b819.js
@@ -0,0 +1,3 @@
+var _t=Object.defineProperty;var At=(e,t,n)=>t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>(At(e,typeof t!="symbol"?t+"":t,n),n);import{r as k,w as We,H as Ge,ag as Pe,ah as xe,O as Tt,P as Ot,u as Rt,l as Ke,V as Ct,ay as Pt,az as xt,aA as kt,aB as te,b as Dt,e as Nt,m as Bt,p as Lt,as as Ft}from"./vue-09136d94.js";import{E as ke,b as K,c as Vt,m as It,e as Mt,g as Ut,i as zt,f as Ht}from"./element-3594ebb6.js";import{V as ge,a as jt}from"./vxe-e1f17f9a.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const M="v3-admin-vite";class S{}V(S,"TOKEN",`${M}-token-key`),V(S,"CONFIG_LAYOUT",`${M}-config-layout-key`),V(S,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),V(S,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),V(S,"VISITED_VIEWS",`${M}-visited-views-key`),V(S,"CACHED_VIEWS",`${M}-cached-views-key`);const qt=()=>{const e=localStorage.getItem(S.CONFIG_LAYOUT);return e?JSON.parse(e):null},Jt=e=>{localStorage.setItem(S.CONFIG_LAYOUT,JSON.stringify(e))},$t=()=>{localStorage.removeItem(S.CONFIG_LAYOUT)},co=()=>localStorage.getItem(S.SIDEBAR_STATUS),uo=e=>{localStorage.setItem(S.SIDEBAR_STATUS,e)},Wt=()=>localStorage.getItem(S.ACTIVE_THEME_NAME),Gt=e=>{localStorage.setItem(S.ACTIVE_THEME_NAME,e)},Kt=()=>{const e=localStorage.getItem(S.VISITED_VIEWS);return JSON.parse(e??"[]")},Xt=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(S.VISITED_VIEWS,JSON.stringify(e))},Yt=()=>{const e=localStorage.getItem(S.CACHED_VIEWS);return JSON.parse(e??"[]")},Zt=e=>{localStorage.setItem(S.CACHED_VIEWS,JSON.stringify(e))},Xe="normal",Qt=[{title:"默认",name:Xe},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],we=k(Wt()||Xe),en=e=>{we.value=e},tn=e=>{document.documentElement.className=e},nn=()=>{We(()=>{const e=we.value;tn(e),Gt(e)})};function rn(){return{themeList:Qt,activeThemeName:we,initTheme:nn,setTheme:en}}const lo=e=>{let t="";try{t=getComputedStyle(document.documentElement).getPropertyValue(e)}catch(n){console.error(n)}return t},fo=(e,t)=>{try{document.documentElement.style.setProperty(e,t)}catch(n){console.error(n)}},on=()=>{$t(),location.reload()};var sn={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const an=Ge({__name:"App",setup(e){const{initTheme:t}=rn();return t(),ke({title:"Hello",type:"success",message:Pe("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),ke({title:"破坏性更新",type:"warning",message:Pe("span",{style:"color: teal; cursor: pointer;",onClick:on},"由于平台 4.1.0 版本新增了多种布局模式,如果第一次出现白屏情况,点击这里或手动前往控制台清理 LocalStorage 缓存数据后刷新页面即可!"),duration:0,position:"bottom-right",offset:150}),(n,r)=>{const o=xe("router-view"),s=xe("ElConfigProvider");return Ke(),Tt(s,{locale:Rt(sn)},{default:Ot(()=>[Ct(o)]),_:1},8,["locale"])}}}),ne=Pt(),cn="modulepreload",un=function(e){return"/v3-admin-vite/"+e},De={},v=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=un(s),s in De)return;De[s]=!0;const i=s.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let m=o.length-1;m>=0;m--){const f=o[m];if(f.href===s&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":cn,i||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),i)return new Promise((m,f)=>{u.addEventListener("load",m),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},ln=xt("/v3-admin-vite/"),Ye={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},L=()=>v(()=>import("./index-d2927ef7.js"),["static/index-d2927ef7.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/index.vue_vue_type_script_setup_true_lang-591632e8.js","static/vxe-e1f17f9a.js","static/index-97af8e23.css"]),Ze=[{path:"/redirect",component:L,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>v(()=>import("./index-7bc7cd19.js"),["static/index-7bc7cd19.js","static/vue-09136d94.js"])}]},{path:"/403",component:()=>v(()=>import("./403-abc43d90.js"),["static/403-abc43d90.js","static/ErrorPageLayout-d9d17e83.js","static/vue-09136d94.js","static/ErrorPageLayout-155a3ef2.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-f0c0a3ac.js"),["static/404-f0c0a3ac.js","static/ErrorPageLayout-d9d17e83.js","static/vue-09136d94.js","static/ErrorPageLayout-155a3ef2.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-a8ccbbef.js"),["static/index-a8ccbbef.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/index.vue_vue_type_script_setup_true_lang-591632e8.js","static/vxe-e1f17f9a.js","static/index-acd5de27.css"]),meta:{hidden:!0}},{path:"/",component:L,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-873c5363.js"),["static/index-873c5363.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js","static/index-d3ac1821.css"]),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:L,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-b870ac32.js"),["static/index-b870ac32.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),name:"UnoCSS",meta:{title:"unocss",svgIcon:"unocss"}}]},{path:"/link",component:L,children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link",meta:{title:"外链",svgIcon:"link"}}]},{path:"/table",component:L,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-80a96034.js"),["static/index-80a96034.js","static/index-a09343dd.js","static/element-3594ebb6.js","static/vue-09136d94.js","static/vxe-e1f17f9a.js","static/index-c475a2b5.css"]),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-e853044e.js"),["static/index-e853044e.js","static/index-a09343dd.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:L,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-dd8c4877.js"),["static/index-dd8c4877.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-1be248e6.js"),["static/index-1be248e6.js","static/vue-09136d94.js"]),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-3ede200d.js"),["static/index-3ede200d.js","static/vue-09136d94.js","static/element-3594ebb6.js","static/vxe-e1f17f9a.js"]),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>v(()=>import("./index-d9a07b25.js"),["static/index-d9a07b25.js","static/vue-09136d94.js"]),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-cb8b3c3b.js"),["static/index-cb8b3c3b.js","static/vue-09136d94.js"]),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-0b249b89.js"),["static/index-0b249b89.js","static/vue-09136d94.js"]),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-c1b32fa9.js"),["static/index-c1b32fa9.js","static/vue-09136d94.js"]),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:L,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-c32d63a8.js"),["static/use-fetch-select-c32d63a8.js","static/vue-09136d94.js"]),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-d189eac7.js"),["static/use-fullscreen-loading-d189eac7.js","static/element-3594ebb6.js","static/vue-09136d94.js"]),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}}]}],dn=[{path:"/permission",component:L,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-94e5103a.js"),["static/page-94e5103a.js","static/vue-09136d94.js","static/SwitchRoles-11841495.js","static/SwitchRoles-47de59b3.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js","static/page-52a84664.css"]),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-2976cbe3.js"),["static/directive-2976cbe3.js","static/SwitchRoles-11841495.js","static/vue-09136d94.js","static/SwitchRoles-47de59b3.css","static/element-3594ebb6.js","static/vxe-e1f17f9a.js","static/directive-7c8db414.css"]),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],D=kt({history:ln,routes:Ze});function Ne(){try{D.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&D.hasRoute(t)&&D.removeRoute(t)})}catch{window.location.reload()}}const fn=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(o=>n.includes(o)):!0},Qe=(e,t)=>{const n=[];return e.forEach(r=>{const o={...r};fn(t,o)&&(o.children&&(o.children=Qe(o.children,t)),n.push(o))}),n},et=te("permission",()=>{const e=k([]),t=k([]);return{routes:e,dynamicRoutes:t,setRoutes:r=>{const o=Qe(dn,r);e.value=Ze.concat(o),t.value=o}}});function mn(){return et(ne)}const pn={layoutMode:"left",showSettings:!0,showTagsView:!0,fixedHeader:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showGreyMode:!1,showColorWeakness:!1},hn={...pn,...qt()},tt=te("settings",()=>{const e={};for(const[n,r]of Object.entries(hn)){const o=k(r);e[n]=o,Dt(o,()=>{const s=t();Jt(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),nt=te("tags-view",()=>{const{cacheTagsView:e}=tt(),t=k(e?Kt():[]),n=k(e?Yt():[]);return We(()=>{Xt(t.value),Zt(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:f=>{const h=t.value.findIndex(y=>y.path===f.path);h!==-1?t.value[h].fullPath!==f.fullPath&&(t.value[h]={...f}):t.value.push({...f})},addCachedView:f=>{var h;typeof f.name=="string"&&(n.value.includes(f.name)||(h=f.meta)!=null&&h.keepAlive&&n.value.push(f.name))},delVisitedView:f=>{const h=t.value.findIndex(y=>y.path===f.path);h!==-1&&t.value.splice(h,1)},delCachedView:f=>{if(typeof f.name!="string")return;const h=n.value.indexOf(f.name);h!==-1&&n.value.splice(h,1)},delOthersVisitedViews:f=>{t.value=t.value.filter(h=>{var y;return((y=h.meta)==null?void 0:y.affix)||h.path===f.path})},delOthersCachedViews:f=>{if(typeof f.name!="string")return;const h=n.value.indexOf(f.name);h!==-1?n.value=n.value.slice(h,h+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(f=>{var h;return(h=f.meta)==null?void 0:h.affix})},delAllCachedViews:()=>{n.value=[]}}});function En(){return nt(ne)}function G(e){for(var t=1;t"u")){i=G({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var p in i)i[p]&&(l+="; "+p,i[p]!==!0&&(l+="="+i[p].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},l=0;lbe.get(S.TOKEN),Be=e=>{be.set(S.TOKEN,e)},Le=()=>{be.remove(S.TOKEN)};function rt(e,t){return function(){return e.apply(t,arguments)}}const{toString:gn}=Object.prototype,{getPrototypeOf:Se}=Object,re=(e=>t=>{const n=gn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>re(t)===e),oe=e=>t=>typeof t===e,{isArray:H}=Array,q=oe("undefined");function wn(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ot=x("ArrayBuffer");function bn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ot(e.buffer),t}const vn=oe("string"),O=oe("function"),st=oe("number"),se=e=>e!==null&&typeof e=="object",Sn=e=>e===!0||e===!1,X=e=>{if(re(e)!=="object")return!1;const t=Se(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_n=x("Date"),An=x("File"),Tn=x("Blob"),On=x("FileList"),Rn=e=>se(e)&&O(e.pipe),Cn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||O(e.append)&&((t=re(e))==="formdata"||t==="object"&&O(e.toString)&&e.toString()==="[object FormData]"))},Pn=x("URLSearchParams"),xn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const at=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ct=e=>!q(e)&&e!==at;function pe(){const{caseless:e}=ct(this)&&this||{},t={},n=(r,o)=>{const s=e&&it(t,o)||o;X(t[s])&&X(r)?t[s]=pe(t[s],r):X(r)?t[s]=pe({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&O(o)?e[s]=rt(o,n):e[s]=o},{allOwnKeys:r}),e),Dn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bn=(e,t,n,r)=>{let o,s,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ln=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Fn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!st(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Se(Uint8Array)),In=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Mn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Un=x("HTMLFormElement"),zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Hn=x("RegExp"),ut=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},jn=e=>{ut(e,(t,n)=>{if(O(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(O(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qn=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Jn=()=>{},$n=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ue="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",lt={DIGIT:Ve,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+Ve},Wn=(e=16,t=lt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Gn(e){return!!(e&&O(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Kn=e=>{const t=new Array(10),n=(r,o)=>{if(se(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return J(r,(i,l)=>{const p=n(i,o+1);!q(p)&&(s[l]=p)}),t[o]=void 0,s}}return r};return n(e,0)},Xn=x("AsyncFunction"),Yn=e=>e&&(se(e)||O(e))&&O(e.then)&&O(e.catch),c={isArray:H,isArrayBuffer:ot,isBuffer:wn,isFormData:Cn,isArrayBufferView:bn,isString:vn,isNumber:st,isBoolean:Sn,isObject:se,isPlainObject:X,isUndefined:q,isDate:_n,isFile:An,isBlob:Tn,isRegExp:Hn,isFunction:O,isStream:Rn,isURLSearchParams:Pn,isTypedArray:Vn,isFileList:On,forEach:J,merge:pe,extend:kn,trim:xn,stripBOM:Dn,inherits:Nn,toFlatObject:Bn,kindOf:re,kindOfTest:x,endsWith:Ln,toArray:Fn,forEachEntry:In,matchAll:Mn,isHTMLForm:Un,hasOwnProperty:Fe,hasOwnProp:Fe,reduceDescriptors:ut,freezeMethods:jn,toObjectSet:qn,toCamelCase:zn,noop:Jn,toFiniteNumber:$n,findKey:it,global:at,isContextDefined:ct,ALPHABET:lt,generateString:Wn,isSpecCompliantForm:Gn,toJSONObject:Kn,isAsyncFn:Xn,isThenable:Yn};function g(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dt=g.prototype,ft={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ft[e]={value:e}});Object.defineProperties(g,ft);Object.defineProperty(dt,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(dt);return c.toFlatObject(e,i,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Zn=null;function he(e){return c.isPlainObject(e)||c.isArray(e)}function mt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ie(e,t,n){return e?e.concat(t).map(function(o,s){return o=mt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Qn(e){return c.isArray(e)&&!e.some(he)}const er=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!c.isUndefined(E[d])});const r=n.metaTokens,o=n.visitor||m,s=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(o))throw new TypeError("visitor must be a function");function u(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!p&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?p&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function m(a,d,E){let w=a;if(a&&!E&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&Qn(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(w=c.toArray(a)))return d=mt(d),w.forEach(function(T,b){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Ie([d],b,s):i===null?d:d+"[]",u(T))}),!1}return he(a)?!0:(t.append(Ie(E,d,s),u(a)),!1)}const f=[],h=Object.assign(er,{defaultVisitor:m,convertValue:u,isVisitable:he});function y(a,d){if(!c.isUndefined(a)){if(f.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(a),c.forEach(a,function(w,A){(!(c.isUndefined(w)||w===null)&&o.call(t,w,c.isString(A)?A.trim():A,d,h))===!0&&y(w,d?d.concat(A):[A])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&ie(e,this,t)}const pt=_e.prototype;pt.append=function(t,n){this._pairs.push([t,n])};pt.toString=function(t){const n=t?function(r){return t.call(this,r,Me)}:Me;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function tr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ht(e,t,n){if(!t)return e;const r=n&&n.encode||tr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=c.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class nr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ue=nr,Et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rr=typeof URLSearchParams<"u"?URLSearchParams:_e,or=typeof FormData<"u"?FormData:null,sr=typeof Blob<"u"?Blob:null,ir=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ar=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),P={isBrowser:!0,classes:{URLSearchParams:rr,FormData:or,Blob:sr},isStandardBrowserEnv:ir,isStandardBrowserWebWorkerEnv:ar,protocols:["http","https","file","blob","url","data"]};function cr(e,t){return ie(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return P.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function ur(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&c.isArray(o)?o.length:i,p?(c.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!c.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&c.isArray(o[i])&&(o[i]=lr(o[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,o)=>{t(ur(r),o,n,0)}),n}return null}const dr={"Content-Type":void 0};function fr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ae={transitional:Et,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return o&&o?JSON.stringify(yt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return cr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ie(l?{"files[]":t}:t,p&&new p,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),fr(t)):t}],transformResponse:[function(t){const n=this.transitional||ae.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?g.from(l,g.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(t){ae.headers[t]={}});c.forEach(["post","put","patch"],function(t){ae.headers[t]=c.merge(dr)});const Ae=ae,mr=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pr=e=>{const t={};let n,r,o;return e&&e.split(`
+`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&mr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function Y(e){return e===!1||e==null?e:c.isArray(e)?e.map(Y):String(e)}function hr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Er=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,r,o){if(c.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function yr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(l,p,u){const m=j(p);if(!m)throw new Error("header name must be a non-empty string");const f=c.findKey(o,m);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||p]=Y(l))}const i=(l,p)=>c.forEach(l,(u,m)=>s(u,m,p));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Er(t)?i(pr(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=j(t),t){const r=c.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return hr(o);if(c.isFunction(n))return n.call(this,o,r);if(c.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||le(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=j(i),i){const l=c.findKey(r,i);l&&(!n||le(r,r[l],l,n))&&(delete r[l],o=!0)}}return c.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||le(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return c.forEach(this,(o,s)=>{const i=c.findKey(r,s);if(i){n[i]=Y(o),delete n[s];return}const l=t?yr(s):String(s).trim();l!==s&&delete n[s],n[l]=Y(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
+`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=j(i);r[l]||(gr(o,i),r[l]=!0)}return c.isArray(t)?t.forEach(s):s(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.freezeMethods(ce.prototype);c.freezeMethods(ce);const N=ce;function de(e,t){const n=this||Ae,r=t||n,o=N.from(r.headers);let s=r.data;return c.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function gt(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits($,g,{__CANCEL__:!0});function wr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const br=P.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,l){const p=[];p.push(n+"="+encodeURIComponent(r)),c.isNumber(o)&&p.push("expires="+new Date(o).toGMTString()),c.isString(s)&&p.push("path="+s),c.isString(i)&&p.push("domain="+i),l===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function vr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function wt(e,t){return e&&!vr(t)?Sr(e,t):t}const _r=P.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=c.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Ar(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Tr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(p){const u=Date.now(),m=r[s];i||(i=u),n[o]=p,r[o]=u;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,p=r(l),u=s<=i;n=s;const m={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:p||void 0,estimated:p&&i&&u?(i-s)/p:void 0,event:o};m[t?"download":"upload"]=!0,e(m)}}const Or=typeof XMLHttpRequest<"u",Rr=Or&&function(e){return new Promise(function(n,r){let o=e.data;const s=N.from(e.headers).normalize(),i=e.responseType;let l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}c.isFormData(o)&&(P.isStandardBrowserEnv||P.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+a))}const m=wt(e.baseURL,e.url);u.open(e.method.toUpperCase(),ht(m,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const y=N.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:e,request:u};wr(function(w){n(w),p()},function(w){r(w),p()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new g("Request aborted",g.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||Et;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),r(new g(a,d.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,u)),u=null},P.isStandardBrowserEnv){const y=(e.withCredentials||_r(m))&&e.xsrfCookieName&&br.read(e.xsrfCookieName);y&&s.set(e.xsrfHeaderName,y)}o===void 0&&s.setContentType(null),"setRequestHeader"in u&&c.forEach(s.toJSON(),function(a,d){u.setRequestHeader(d,a)}),c.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",He(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",He(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{u&&(r(!y||y.type?new $(null,e,u):y),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=Ar(m);if(h&&P.protocols.indexOf(h)===-1){r(new g("Unsupported protocol "+h+":",g.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Z={http:Zn,xhr:Rr};c.forEach(Z,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cr={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof N?e.toJSON():e;function z(e,t){t=t||{};const n={};function r(u,m,f){return c.isPlainObject(u)&&c.isPlainObject(m)?c.merge.call({caseless:f},u,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function o(u,m,f){if(c.isUndefined(m)){if(!c.isUndefined(u))return r(void 0,u,f)}else return r(u,m,f)}function s(u,m){if(!c.isUndefined(m))return r(void 0,m)}function i(u,m){if(c.isUndefined(m)){if(!c.isUndefined(u))return r(void 0,u)}else return r(void 0,m)}function l(u,m,f){if(f in t)return r(u,m);if(f in e)return r(void 0,u)}const p={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,m)=>o(qe(u),qe(m),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=p[m]||o,h=f(e[m],t[m],m);c.isUndefined(h)&&f!==l||(n[m]=h)}),n}const bt="1.4.0",Te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Je={};Te.transitional=function(t,n,r){function o(s,i){return"[Axios v"+bt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,l)=>{if(t===!1)throw new g(o(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!Je[i]&&(Je[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,l):!0}};function Pr(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const l=e[s],p=l===void 0||i(l,s,e);if(p!==!0)throw new g("option "+s+" must be "+p,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const Ee={assertOptions:Pr,validators:Te},B=Ee.validators;class ee{constructor(t){this.defaults=t,this.interceptors={request:new Ue,response:new Ue}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=z(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ee.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),o!=null&&(c.isFunction(o)?n.paramsSerializer={serialize:o}:Ee.assertOptions(o,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&c.merge(s.common,s[n.method]),i&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete s[a]}),n.headers=N.concat(i,s);const l=[];let p=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(p=p&&d.synchronous,l.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let m,f=0,h;if(!p){const a=[je.bind(this),void 0];for(a.unshift.apply(a,l),a.push.apply(a,u),h=a.length,m=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,l){r.reason||(r.reason=new $(s,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Oe(function(o){t=o}),cancel:t}}}const xr=Oe;function kr(e){return function(n){return e.apply(null,n)}}function Dr(e){return c.isObject(e)&&e.isAxiosError===!0}const ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ye).forEach(([e,t])=>{ye[t]=e});const Nr=ye;function vt(e){const t=new Q(e),n=rt(Q.prototype.request,t);return c.extend(n,Q.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return vt(z(e,o))},n}const _=vt(Ae);_.Axios=Q;_.CanceledError=$;_.CancelToken=xr;_.isCancel=gt;_.VERSION=bt;_.toFormData=ie;_.AxiosError=g;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=kr;_.isAxiosError=Dr;_.mergeConfig=z;_.AxiosHeaders=N;_.formToJSON=e=>yt(c.isHTMLForm(e)?new FormData(e):e);_.HttpStatusCode=Nr;_.default=_;const Br=_;function $e(){Ce().logout(),location.reload()}function Lr(){const e=Br.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var s;const n=t.data,r=(s=t.request)==null?void 0:s.responseType;if(r==="blob"||r==="arraybuffer")return n;const o=n.code;if(o===void 0)return K.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(o){case 0:return n;case 401:return $e();default:return K.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(Vt(t,"response.status")){case 400:t.message="请求错误";break;case 401:$e();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return K.error(t.message),Promise.reject(t)}),e}function Fr(e){return function(t){const n=ve(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1",data:{}},o=It(r,t);return e(o)}}const Vr=Lr(),Re=Fr(Vr);function mo(){return Re({url:"login/code",method:"get"})}function Ir(e){return Re({url:"users/login",method:"post",data:e})}function Mr(){return Re({url:"users/info",method:"get"})}const Ur=te("user",()=>{const e=k(ve()||""),t=k([]),n=k(""),r=et(),o=nt(),s=tt(),i=y=>{t.value=y},l=async({username:y,password:a,code:d})=>{const{data:E}=await Ir({username:y,password:a,code:d});Be(E.token),e.value=E.token},p=async()=>{var a;const{data:y}=await Mr();n.value=y.username,t.value=((a=y.roles)==null?void 0:a.length)>0?y.roles:Ye.defaultRoles},u=async y=>{const a="token-"+y;e.value=a,Be(a),await p(),r.setRoutes(t.value),Ne(),r.dynamicRoutes.forEach(d=>{D.addRoute(d)}),h()},m=()=>{Le(),e.value="",t.value=[],Ne(),h()},f=()=>{Le(),e.value="",t.value=[]},h=()=>{s.cacheTagsView||(o.delAllVisitedViews(),o.delAllCachedViews())};return{token:e,roles:t,username:n,setRoles:i,login:l,getInfo:p,changeRoles:u,logout:m,resetToken:f}});function Ce(){return Ur(ne)}const zr=()=>{const e=En();e.cachedViews=[...e.cachedViews]},Hr=["/login"],jr=[],qr=e=>Hr.indexOf(e.path)!==-1||jr.indexOf(e.name)!==-1;var St={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Mt,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(a){var d,E;for(d in a)E=a[d],E!==void 0&&a.hasOwnProperty(d)&&(r[d]=E);return this},n.status=null,n.set=function(a){var d=n.isStarted();a=o(a,r.minimum,1),n.status=a===1?null:a;var E=n.render(!d),w=E.querySelector(r.barSelector),A=r.speed,T=r.easing;return E.offsetWidth,l(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),p(w,i(a,A,T)),a===1?(p(E,{transition:"none",opacity:1}),E.offsetWidth,setTimeout(function(){p(E,{transition:"all "+A+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},A)},A)):setTimeout(b,A)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var d=n.status;return d?(typeof a!="number"&&(a=(1-d)*o(Math.random()*d,.1,.95)),d=o(d+a,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,d=0;n.promise=function(E){return!E||E.state()==="resolved"?this:(d===0&&n.start(),a++,d++,E.always(function(){d--,d===0?(a=0,n.done()):n.set((a-d)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var E=d.querySelector(r.barSelector),w=a?"-100":s(n.status||0),A=document.querySelector(r.parent),T;return p(E,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&y(T)),A!=document.body&&m(A,"nprogress-custom-parent"),A.appendChild(d),d},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&y(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,d="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return d+"Perspective"in a?"translate3d":d+"Transform"in a?"translate":"margin"};function o(a,d,E){return aE?E:a}function s(a){return(-1+a)*100}function i(a,d,E){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+s(a)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+s(a)+"%,0)"}:w={"margin-left":s(a)+"%"},w.transition="all "+d+"ms "+E,w}var l=function(){var a=[];function d(){var E=a.shift();E&&E(d)}return function(E){a.push(E),a.length==1&&d()}}(),p=function(){var a=["Webkit","O","Moz","ms"],d={};function E(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(R,C){return C.toUpperCase()})}function w(b){var R=document.body.style;if(b in R)return b;for(var C=a.length,I=b.charAt(0).toUpperCase()+b.slice(1),F;C--;)if(F=a[C]+I,F in R)return F;return b}function A(b){return b=E(b),d[b]||(d[b]=w(b))}function T(b,R,C){R=A(R),b.style[R]=C}return function(b,R){var C=arguments,I,F;if(C.length==2)for(I in R)F=R[I],F!==void 0&&R.hasOwnProperty(I)&&T(b,I,F);else T(b,C[1],C[2])}}();function u(a,d){var E=typeof a=="string"?a:h(a);return E.indexOf(" "+d+" ")>=0}function m(a,d){var E=h(a),w=E+d;u(E,d)||(a.className=w.substring(1))}function f(a,d){var E=h(a),w;u(a,d)&&(w=E.replace(" "+d+" "," "),a.className=w.substring(1,w.length-1))}function h(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function y(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(St);var Jr=St.exports;const U=Ut(Jr);U.configure({showSpinner:!1});D.beforeEach(async(e,t,n)=>{zr(),U.start();const r=Ce(),o=mn();if(ve())if(e.path==="/login")n({path:"/"}),U.done();else if(r.roles.length===0)try{if(Ye.async){await r.getInfo();const s=r.roles;o.setRoutes(s)}o.dynamicRoutes.forEach(s=>{D.addRoute(s)}),n({...e,replace:!0})}catch(s){r.resetToken(),K.error(s.message||"路由守卫过程发生错误"),n("/login"),U.done()}else n();else qr(e)?n():(n("/login"),U.done())});D.afterEach(()=>{U.done()});const $r={class:"svg-icon","aria-hidden":"true"},Wr=["href"],Gr=Ge({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Nt(()=>`#${t.prefix}-${t.name}`);return(r,o)=>(Ke(),Bt("svg",$r,[Lt("use",{href:n.value},null,8,Wr)]))}});const Kr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Xr=Kr(Gr,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function Yr(e){e.component("SvgIcon",Xr)}function Zr(e){e.use(zt)}function Qr(e){for(const[t,n]of Object.entries(Ht))e.component(t,n)}ge.use(jt);ge.setup({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0},columnConfig:{resizable:!1},align:"center",headerAlign:"center",rowId:"_VXE_ID"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function eo(e){e.use(ge)}function to(e){Zr(e),Qr(e),eo(e)}const no={mounted(e,t){var o;const{value:n}=t,{roles:r}=Ce();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((o=e.parentNode)==null||o.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function ro(e){e.directive("permission",no)}const W=Ft(an);to(W);Yr(W);ro(W);W.use(ne).use(D);D.isReady().then(()=>{W.mount("#app")});export{Kr as _,tt as a,lo as b,et as c,Ur as d,fo as e,mo as f,co as g,rn as h,Re as i,Ce as j,on as r,uo as s,nt as u};
diff --git a/static/index-a2cbd53c.js b/static/index-a8ccbbef.js
similarity index 93%
rename from static/index-a2cbd53c.js
rename to static/index-a8ccbbef.js
index 8068bfc1..1f41e7c8 100644
--- a/static/index-a2cbd53c.js
+++ b/static/index-a8ccbbef.js
@@ -1 +1 @@
-import{H as k,aE as C,r as f,_ as z,ah as s,l as I,m as U,V as e,p as c,P as a,u as i,a3 as F,T as M,a9 as R,aH as S,aI as q}from"./vue-09136d94.js";import{f as B,d as K,_ as N}from"./index-15431bfa.js";import{v as E,w as H,x as L,y as T,z as A}from"./element-3594ebb6.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang-fc9a186a.js";import"./vxe-e1f17f9a.js";const P="/v3-admin-vite/static/logo-text-2-eef467fb.png",$=d=>(S("data-v-de8307a8"),d=d(),q(),d),j={class:"login-container"},G={class:"login-card"},J=$(()=>c("div",{class:"title"},[c("img",{src:P})],-1)),O={class:"content"},Q=k({__name:"index",setup(d){const h=C(),g=f(null),u=f(!1),p=f(""),o=z({username:"admin",password:"12345678",code:""}),w={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},x=()=>{var l;(l=g.value)==null||l.validate((t,r)=>{t?(u.value=!0,K().login(o).then(()=>{h.push({path:"/"})}).catch(()=>{m(),o.password=""}).finally(()=>{u.value=!1})):console.error("表单校验不通过",r)})},m=()=>{o.code="",p.value="",B().then(l=>{p.value=l.data})};return m(),(l,t)=>{const r=s("el-input"),_=s("el-form-item"),v=s("el-icon"),y=s("el-image"),V=s("el-button"),b=s("el-form");return I(),U("div",j,[e(D,{class:"theme-switch"}),c("div",G,[J,c("div",O,[e(b,{ref_key:"loginFormRef",ref:g,model:o,rules:w,onKeyup:R(x,["enter"])},{default:a(()=>[e(_,{prop:"username"},{default:a(()=>[e(r,{modelValue:o.username,"onUpdate:modelValue":t[0]||(t[0]=n=>o.username=n),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":i(E),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"password"},{default:a(()=>[e(r,{modelValue:o.password,"onUpdate:modelValue":t[1]||(t[1]=n=>o.password=n),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":i(H),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"code"},{default:a(()=>[e(r,{modelValue:o.code,"onUpdate:modelValue":t[2]||(t[2]=n=>o.code=n),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":i(L),maxlength:"7",size:"large"},{append:a(()=>[e(y,{src:p.value,onClick:m,draggable:"false"},{placeholder:a(()=>[e(v,null,{default:a(()=>[e(i(T))]),_:1})]),error:a(()=>[e(v,null,{default:a(()=>[e(i(A))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(V,{loading:u.value,type:"primary",size:"large",onClick:F(x,["prevent"])},{default:a(()=>[M("登 录")]),_:1},8,["loading","onClick"])]),_:1},8,["model","onKeyup"])])])])}}});const oe=N(Q,[["__scopeId","data-v-de8307a8"]]);export{oe as default};
+import{H as k,aE as C,r as f,_ as z,ah as s,l as I,m as U,V as e,p as c,P as a,u as i,a3 as F,T as M,a9 as R,aH as S,aI as q}from"./vue-09136d94.js";import{f as B,d as K,_ as N}from"./index-a7e4b819.js";import{v as E,w as H,x as L,y as T,z as A}from"./element-3594ebb6.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang-591632e8.js";import"./vxe-e1f17f9a.js";const P="/v3-admin-vite/static/logo-text-2-eef467fb.png",$=d=>(S("data-v-de8307a8"),d=d(),q(),d),j={class:"login-container"},G={class:"login-card"},J=$(()=>c("div",{class:"title"},[c("img",{src:P})],-1)),O={class:"content"},Q=k({__name:"index",setup(d){const h=C(),g=f(null),u=f(!1),p=f(""),o=z({username:"admin",password:"12345678",code:""}),w={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},x=()=>{var l;(l=g.value)==null||l.validate((t,r)=>{t?(u.value=!0,K().login(o).then(()=>{h.push({path:"/"})}).catch(()=>{m(),o.password=""}).finally(()=>{u.value=!1})):console.error("表单校验不通过",r)})},m=()=>{o.code="",p.value="",B().then(l=>{p.value=l.data})};return m(),(l,t)=>{const r=s("el-input"),_=s("el-form-item"),v=s("el-icon"),y=s("el-image"),V=s("el-button"),b=s("el-form");return I(),U("div",j,[e(D,{class:"theme-switch"}),c("div",G,[J,c("div",O,[e(b,{ref_key:"loginFormRef",ref:g,model:o,rules:w,onKeyup:R(x,["enter"])},{default:a(()=>[e(_,{prop:"username"},{default:a(()=>[e(r,{modelValue:o.username,"onUpdate:modelValue":t[0]||(t[0]=n=>o.username=n),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":i(E),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"password"},{default:a(()=>[e(r,{modelValue:o.password,"onUpdate:modelValue":t[1]||(t[1]=n=>o.password=n),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":i(H),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"code"},{default:a(()=>[e(r,{modelValue:o.code,"onUpdate:modelValue":t[2]||(t[2]=n=>o.code=n),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":i(L),maxlength:"7",size:"large"},{append:a(()=>[e(y,{src:p.value,onClick:m,draggable:"false"},{placeholder:a(()=>[e(v,null,{default:a(()=>[e(i(T))]),_:1})]),error:a(()=>[e(v,null,{default:a(()=>[e(i(A))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(V,{loading:u.value,type:"primary",size:"large",onClick:F(x,["prevent"])},{default:a(()=>[M("登 录")]),_:1},8,["loading","onClick"])]),_:1},8,["model","onKeyup"])])])])}}});const oe=N(Q,[["__scopeId","data-v-de8307a8"]]);export{oe as default};
diff --git a/static/index-cc357204.js b/static/index-b870ac32.js
similarity index 94%
rename from static/index-cc357204.js
rename to static/index-b870ac32.js
index 497d6696..6e392ed8 100644
--- a/static/index-cc357204.js
+++ b/static/index-b870ac32.js
@@ -1 +1 @@
-import{_ as e}from"./index-15431bfa.js";import{l as o,m as n,p as t}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const a={},i={"h-full":"","uno-padding-20":""},s=t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),r=t("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1),c=[s,r];function d(l,f){return o(),n("div",i,c)}const x=e(a,[["render",d]]);export{x as default};
+import{_ as e}from"./index-a7e4b819.js";import{l as o,m as n,p as t}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const a={},i={"h-full":"","uno-padding-20":""},s=t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),r=t("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1),c=[s,r];function d(l,f){return o(),n("div",i,c)}const x=e(a,[["render",d]]);export{x as default};
diff --git a/static/index-370ab0e6.js b/static/index-d2927ef7.js
similarity index 99%
rename from static/index-370ab0e6.js
rename to static/index-d2927ef7.js
index 53853ab6..37b8dca6 100644
--- a/static/index-370ab0e6.js
+++ b/static/index-d2927ef7.js
@@ -1 +1 @@
-import{aB as Xe,_ as Ke,r as L,b as se,aC as ae,E as Le,d as he,z as Pe,H as R,e as M,ah as y,l as p,m as T,p as x,V as d,P as v,X as De,O as S,aD as je,u as m,R as ie,aE as pe,F as X,a8 as ee,U as z,a3 as re,I as ue,aa as Ge,S as V,T as j,J as W,aF as G,aG as Fe,w as ge,c as Ne,K as ze,aH as be,aI as ye,s as Je,a9 as le,n as Ye,aJ as Ze,Q as fe,W as ve}from"./vue-09136d94.js";import{g as Qe,s as Me,u as Be,_ as P,a as Y,b as ce,c as we,d as et,r as tt,e as Ee}from"./index-15431bfa.js";import{h as nt,j as ot,g as st,k as at,b as de,l as lt,n as rt,o as Oe,u as ct,r as it,p as ut,q as dt,s as _t,t as pt}from"./element-3594ebb6.js";import{_ as ft}from"./index.vue_vue_type_script_setup_true_lang-fc9a186a.js";import"./vxe-e1f17f9a.js";var q=(n=>(n[n.Mobile=0]="Mobile",n[n.Desktop=1]="Desktop",n))(q||{});const vt="opened",We="closed";function mt(n){n?Me(vt):Me(We)}const te=Xe("app",()=>{const n=Ke({opened:Qe()!==We,withoutAnimation:!1}),e=L(q.Desktop);return se(()=>n.opened,o=>mt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),ht=992,gt=()=>{const n=ae(),e=te(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const l=t();e.toggleDevice(l?q.Mobile:q.Desktop),l&&e.closeSidebar(!0)}};se(()=>n.name,()=>{e.device===q.Mobile&&e.sidebar.opened&&e.closeSidebar(!1)}),Le(()=>{window.addEventListener("resize",a)}),he(()=>{t()&&(e.toggleDevice(q.Mobile),e.closeSidebar(!0))}),Pe(()=>{window.removeEventListener("resize",a)})},bt={class:"app-main"},yt={class:"app-scrollbar"},wt=R({__name:"AppMain",setup(n){const e=ae(),t=Be(),a=M(()=>e.path);return(l,o)=>{const s=y("router-view"),r=y("el-backtop");return p(),T("section",bt,[x("div",yt,[d(s,null,{default:v(({Component:i})=>[d(De,{name:"el-fade-in",mode:"out-in"},{default:v(()=>[(p(),S(je,{include:m(t).cachedViews},[(p(),S(ie(i),{key:a.value}))],1032,["include"]))]),_:2},1024)]),_:1})]),d(r),d(r,{target:".app-scrollbar"})])}}});const xe=P(wt,[["__scopeId","data-v-6296b32d"]]),xt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,a=()=>{e("toggleClick")};return(l,o)=>{const s=y("el-icon");return p(),T("div",{onClick:a},[d(s,{size:20,class:"icon"},{default:v(()=>[t.isActive?(p(),S(m(nt),{key:0})):(p(),S(m(ot),{key:1}))]),_:1})])}}});const St=P(xt,[["__scopeId","data-v-252d9bf8"]]);function kt(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){l+=n[o++];continue}break}if(!l)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:l}),t=o;continue}if(a==="("){var r=1,i="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o{a.value=e.matched.filter(r=>{var i,_;return((i=r.meta)==null?void 0:i.title)&&((_=r.meta)==null?void 0:_.breadcrumb)!==!1})},o=r=>Tt(r)(e.params),s=r=>{const{redirect:i,path:_}=r;if(i){t.push(i);return}t.push(o(_))};return se(()=>e.path,r=>{r.startsWith("/redirect/")||l()}),l(),(r,i)=>{const _=y("el-breadcrumb-item"),u=y("el-breadcrumb");return p(),S(u,{class:"app-breadcrumb"},{default:v(()=>[(p(!0),T(X,null,ee(a.value,(c,h)=>(p(),S(_,{key:c.path},{default:v(()=>[c.redirect==="noRedirect"||h===a.value.length-1?(p(),T("span",Vt,z(c.meta.title),1)):(p(),T("a",{key:1,onClick:re(b=>s(c),["prevent"])},z(c.meta.title),9,At))]),_:2},1024))),128))]),_:1})}}});const Rt=P(It,[["__scopeId","data-v-94c6aa4b"]]),_e=n=>/^(https?:|mailto:|tel:)/.test(n),Lt=["href"],Pt=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,a)=>{const l=y("router-link");return m(_e)(e.to)?(p(),T("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ue(t.$slots,"default")],8,Lt)):(p(),S(l,{key:1,to:e.to},{default:v(()=>[ue(t.$slots,"default")]),_:3},8,["to"]))}}});function J(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Ve(n,e){for(var t="",a=0,l=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var i=t.lastIndexOf("/");if(i!==t.length-1){i===-1?(t="",a=0):(t=t.slice(0,i),a=t.length-1-t.lastIndexOf("/")),l=r,o=0;continue}}else if(t.length===2||t.length===1){t="",a=0,l=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",a=2)}else t.length>0?t+="/"+n.slice(l+1,r):t=n.slice(l+1,r),a=r-l-1;l=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function Dt(n,e){var t=e.dir||e.root,a=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+a:t+n+a:a}var oe={resolve:function(){for(var e="",t=!1,a,l=arguments.length-1;l>=-1&&!t;l--){var o;l>=0?o=arguments[l]:(a===void 0&&(a=process.cwd()),o=a),J(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Ve(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(J(e),e.length===0)return".";var t=e.charCodeAt(0)===47,a=e.charCodeAt(e.length-1)===47;return e=Ve(e,!t),e.length===0&&!t&&(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return J(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=a:e+="/"+a)}return e===void 0?".":oe.normalize(e)},relative:function(e,t){if(J(e),J(t),e===t||(e=oe.resolve(e),t=oe.resolve(t),e===t))return"";for(var a=1;a_){if(t.charCodeAt(s+c)===47)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else o>_&&(e.charCodeAt(a+c)===47?u=c:c===0&&(u=0));break}var h=e.charCodeAt(a+c),b=t.charCodeAt(s+c);if(h!==b)break;h===47&&(u=c)}var g="";for(c=a+u+1;c<=l;++c)(c===l||e.charCodeAt(c)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(J(e),e.length===0)return".";for(var t=e.charCodeAt(0),a=t===47,l=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){l=s;break}}else o=!1;return l===-1?a?"/":".":a&&l===1?"//":e.slice(0,l)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');J(e);var a=0,l=-1,o=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,i=-1;for(s=e.length-1;s>=0;--s){var _=e.charCodeAt(s);if(_===47){if(!o){a=s+1;break}}else i===-1&&(o=!1,i=s+1),r>=0&&(_===t.charCodeAt(r)?--r===-1&&(l=s):(r=-1,l=i))}return a===l?l=i:l===-1&&(l=e.length),e.slice(a,l)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){a=s+1;break}}else l===-1&&(o=!1,l=s+1);return l===-1?"":e.slice(a,l)}},extname:function(e){J(e);for(var t=-1,a=0,l=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var i=e.charCodeAt(r);if(i===47){if(!o){a=r+1;break}continue}l===-1&&(o=!1,l=r+1),i===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||l===-1||s===0||s===1&&t===l-1&&t===a+1?"":e.slice(t,l)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return Dt("/",e)},parse:function(e){J(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var a=e.charCodeAt(0),l=a===47,o;l?(t.root="/",o=1):o=0;for(var s=-1,r=0,i=-1,_=!0,u=e.length-1,c=0;u>=o;--u){if(a=e.charCodeAt(u),a===47){if(!_){r=u+1;break}continue}i===-1&&(_=!1,i=u+1),a===46?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}return s===-1||i===-1||c===0||c===1&&s===i-1&&s===r+1?i!==-1&&(r===0&&l?t.base=t.name=e.slice(1,i):t.base=t.name=e.slice(r,i)):(r===0&&l?(t.name=e.slice(1,s),t.base=e.slice(1,i)):(t.name=e.slice(r,s),t.base=e.slice(r,i)),t.ext=e.slice(s,i)),r>0?t.dir=e.slice(0,r-1):l&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};oe.posix=oe;var Ft=oe;const He=st(Ft),Nt={key:2},zt=R({__name:"SidebarItem",props:{item:{},isCollapse:{type:Boolean,default:!1},isTop:{type:Boolean,default:!1},isFirstLevel:{type:Boolean,default:!0},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),a=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(i=>{var _;return!((_=i.meta)!=null&&_.hidden)}))??[]}),l=M(()=>a.value.length),o=M(()=>{const r=l.value;switch(!0){case r>1:return null;case r===1:return a.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case _e(r):return r;case _e(e.basePath):return e.basePath;default:return He.resolve(e.basePath,r)}};return(r,i)=>{var b;const _=y("SvgIcon"),u=y("el-menu-item"),c=y("sidebar-item",!0),h=y("el-sub-menu");return(b=e.item.meta)!=null&&b.hidden?V("",!0):(p(),T("div",{key:0,class:W({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(p(),T(X,{key:0},[o.value.meta?(p(),S(Pt,{key:0,to:s(o.value.path)},{default:v(()=>[d(u,{index:s(o.value.path)},Ge({default:v(()=>[o.value.meta.svgIcon?(p(),S(_,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(p(),S(ie(o.value.meta.elIcon),{key:1,class:"el-icon"})):V("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:v(()=>[j(z(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):V("",!0)],64)):(p(),S(h,{key:1,index:s(e.item.path),teleported:""},{title:v(()=>{var g,k,C;return[(g=e.item.meta)!=null&&g.svgIcon?(p(),S(_,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(k=e.item.meta)!=null&&k.elIcon?(p(),S(ie(e.item.meta.elIcon),{key:1,class:"el-icon"})):V("",!0),(C=e.item.meta)!=null&&C.title?(p(),T("span",Nt,z(e.item.meta.title),1)):V("",!0)]}),default:v(()=>[e.item.children?(p(!0),T(X,{key:0},ee(e.item.children,g=>(p(),S(c,{key:g.path,item:g,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":s(g.path)},null,8,["item","is-collapse","base-path"]))),128)):V("",!0)]),_:1},8,["index"]))],2))}}});const Bt=P(zt,[["__scopeId","data-v-72444830"]]),Ot="/v3-admin-vite/static/logo-cc70e06e.png",Wt="/v3-admin-vite/static/logo-text-1-b6b0364d.png",Ht="/v3-admin-vite/static/logo-text-2-eef467fb.png",Ut=["src"],qt=["src"],Xt=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,t=Y(),{layoutMode:a}=G(t);return(l,o)=>{const s=y("router-link");return p(),T("div",{class:W(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":m(a)==="top"}])},[d(De,{name:"layout-logo-fade"},{default:v(()=>[e.collapse?(p(),S(s,{key:"collapse",to:"/"},{default:v(()=>[x("img",{src:m(Ot),class:"layout-logo"},null,8,Ut)]),_:1})):(p(),S(s,{key:"expand",to:"/"},{default:v(()=>[x("img",{src:m(a)!=="left"?m(Ht):m(Wt),class:"layout-logo-text"},null,8,qt)]),_:1}))]),_:1})],2)}}});const Se=P(Xt,[["__scopeId","data-v-8474c76e"]]),Kt=R({__name:"index",setup(n){Fe(f=>({72322718:E.value,"57a52134":H.value,"738aeddc":O.value,"8423c222":B.value}));const e=ce("--v3-sidebar-menu-bg-color"),t=ce("--v3-sidebar-menu-text-color"),a=ce("--v3-sidebar-menu-active-text-color"),l=ae(),o=te(),s=we(),r=Y(),{sidebar:i,device:_}=G(o),{layoutMode:u,showLogo:c}=G(r),h=M(()=>{const{meta:{activeMenu:f},path:w}=l;return f||w}),b=M(()=>!i.value.opened),g=M(()=>u.value==="left"),k=M(()=>u.value==="top"),C=M(()=>_.value===q.Mobile),A=M(()=>g.value&&c.value),I=M(()=>g.value?e:void 0),D=M(()=>g.value?t:void 0),B=M(()=>g.value?a:void 0),H=M(()=>u.value!=="top"?"var(--v3-sidebar-menu-item-height)":"var(--v3-navigationbar-height)"),O=M(()=>u.value!=="top"?"var(--v3-sidebar-menu-hover-bg-color)":"transparent"),E=M(()=>u.value!=="top"?"2px":"0px");return(f,w)=>{const F=y("el-menu"),$=y("el-scrollbar");return p(),T("div",{class:W({"has-logo":A.value})},[A.value?(p(),S(Se,{key:0,collapse:b.value},null,8,["collapse"])):V("",!0),d($,{"wrap-class":"scrollbar-wrapper"},{default:v(()=>[d(F,{"default-active":h.value,collapse:b.value&&!k.value,"background-color":I.value,"text-color":D.value,"active-text-color":B.value,"unique-opened":!0,"collapse-transition":!1,mode:k.value&&!C.value?"horizontal":"vertical"},{default:v(()=>[(p(!0),T(X,null,ee(m(s).routes,N=>(p(),S(Bt,{key:N.path,item:N,"base-path":N.path,"is-collapse":b.value,"is-top":k.value},null,8,["item","base-path","is-collapse","is-top"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}});const ke=P(Kt,[["__scopeId","data-v-72f686ac"]]),jt={class:"card-header"},Gt={class:"card-title"},Jt={class:"card-time"},Yt={key:0,class:"card-avatar"},Zt=["src"],Qt={class:"card-body"},en=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,a)=>{const l=y("el-empty"),o=y("el-tag"),s=y("el-card");return e.list.length===0?(p(),S(l,{key:0})):(p(!0),T(X,{key:1},ee(e.list,(r,i)=>(p(),S(s,{key:i,shadow:"never",class:"card-container"},{header:v(()=>[x("div",jt,[x("div",null,[x("span",null,[x("span",Gt,z(r.title),1),r.extra?(p(),S(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:v(()=>[j(z(r.extra),1)]),_:2},1032,["type"])):V("",!0)]),x("div",Jt,z(r.datetime),1)]),r.avatar?(p(),T("div",Yt,[x("img",{src:r.avatar,width:"34"},null,8,Zt)])):V("",!0)])]),default:v(()=>[x("div",Qt,z(r.description??"No Data"),1)]),_:2},1024))),128))}}});const tn=P(en,[["__scopeId","data-v-137655f9"]]),nn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"半年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"一年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],on=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],sn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:""},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],an={class:"notify"},ln={class:"notify-history"},Ae=99,rn=350,cn=R({__name:"index",setup(n){const e=M(()=>a.value.reduce((o,s)=>o+s.list.length,0)),t=L("通知"),a=L([{name:"通知",type:"primary",list:nn},{name:"消息",type:"danger",list:on},{name:"待办",type:"warning",list:sn}]),l=()=>{de.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=y("el-icon"),i=y("el-tooltip"),_=y("el-badge"),u=y("el-scrollbar"),c=y("el-tab-pane"),h=y("el-tabs"),b=y("el-button"),g=y("el-popover");return p(),T("div",an,[d(g,{placement:"bottom",width:rn,trigger:"click"},{reference:v(()=>[d(_,{value:e.value,max:Ae,hidden:e.value===0},{default:v(()=>[d(i,{effect:"dark",content:"消息通知",placement:"bottom"},{default:v(()=>[d(r,{size:20},{default:v(()=>[d(m(at))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:v(()=>[d(h,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=k=>t.value=k),class:"demo-tabs",stretch:""},{default:v(()=>[(p(!0),T(X,null,ee(a.value,(k,C)=>(p(),S(c,{name:k.name,key:C},{label:v(()=>[j(z(k.name)+" ",1),d(_,{value:k.list.length,max:Ae,type:k.type},null,8,["value","type"])]),default:v(()=>[d(u,{height:"400px"},{default:v(()=>[d(tn,{list:k.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),x("div",ln,[d(b,{link:"",onClick:l},{default:v(()=>[j("查看"+z(t.value)+"历史",1)]),_:1})])]),_:1})])}}});const un=P(cn,[["__scopeId","data-v-50089150"]]),Ie=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Z=(()=>{if(typeof document>"u")return!1;const n=Ie[0],e={};for(const t of Ie)if((t==null?void 0:t[1])in document){for(const[l,o]of t.entries())e[n[l]]=o;return e}return!1})(),Re={change:Z.fullscreenchange,error:Z.fullscreenerror};let U={request(n=document.documentElement,e){return new Promise((t,a)=>{const l=()=>{U.off("change",l),t()};U.on("change",l);const o=n[Z.requestFullscreen](e);o instanceof Promise&&o.then(l).catch(a)})},exit(){return new Promise((n,e)=>{if(!U.isFullscreen){n();return}const t=()=>{U.off("change",t),n()};U.on("change",t);const a=document[Z.exitFullscreen]();a instanceof Promise&&a.then(t).catch(e)})},toggle(n,e){return U.isFullscreen?U.exit():U.request(n,e)},onchange(n){U.on("change",n)},onerror(n){U.on("error",n)},on(n,e){const t=Re[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Re[n];t&&document.removeEventListener(t,e,!1)},raw:Z};Object.defineProperties(U,{isFullscreen:{get:()=>!!document[Z.fullscreenElement]},element:{enumerable:!0,get:()=>document[Z.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Z.fullscreenEnabled]}});Z||(U={isEnabled:!1});const ne=U,dn=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=L(!1),a=M(()=>t.value?e.exitTips:e.openTips),l=M(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const c=document.querySelector(e.element)||void 0;ne.isEnabled?ne.toggle(c):de.warning("您的浏览器无法工作")},s=()=>{t.value=ne.isFullscreen};ge(c=>{ne.on("change",s),c(()=>{ne.isEnabled&&ne.off("change",s)})});const r=L(!1),i=M(()=>r.value?"内容区复原":"内容区放大"),_=M(()=>r.value?"fullscreen-exit":"fullscreen"),u=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(c,h)=>{const b=y("SvgIcon"),g=y("el-tooltip"),k=y("el-dropdown-item"),C=y("el-dropdown-menu"),A=y("el-dropdown");return p(),T("div",null,[c.content?(p(),S(A,{key:1},{dropdown:v(()=>[d(C,null,{default:v(()=>[d(k,{onClick:u},{default:v(()=>[j(z(i.value),1)]),_:1}),d(k,{onClick:o,disabled:t.value},{default:v(()=>[j("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:v(()=>[d(b,{name:_.value},null,8,["name"])]),_:1})):(p(),S(g,{key:0,effect:"dark",content:a.value,placement:"bottom"},{default:v(()=>[d(b,{name:l.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}});const Ue=P(dn,[["__scopeId","data-v-9e7c36e4"]]),_n=["onMouseenter"],pn={class:"result-item-title"},fn=R({__name:"SearchResult",props:{modelValue:{},list:{},isPressUpOrDown:{type:Boolean}},emits:["update:modelValue"],setup(n,{expose:e,emit:t}){const a=n,l=Ne(),o=L(0),s=M({get(){return a.modelValue},set(c){t("update:modelValue",c)}}),r=c=>{const h=c.name===s.value;return{background:h?"var(--el-color-primary)":"",color:h?"#fff":""}},i=c=>{a.isPressUpOrDown||(s.value=c.name)},_=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},u=c=>{var k;const h=(k=l==null?void 0:l.proxy)==null?void 0:k.$refs[`resultItemRef${c}`];if(!h)return 0;const g=h[0].offsetTop+128;return g>o.value?g-o.value:0};return Le(()=>{window.addEventListener("resize",_)}),he(()=>{_()}),Pe(()=>{window.removeEventListener("resize",_)}),e({getScrollTop:u}),(c,h)=>{const b=y("SvgIcon");return p(),T("div",null,[(p(!0),T(X,null,ee(c.list,(g,k)=>{var C,A,I;return p(),T("div",{key:k,ref_for:!0,ref:`resultItemRef${k}`,class:"result-item",style:ze(r(g)),onMouseenter:D=>i(g)},[(C=g.meta)!=null&&C.svgIcon?(p(),S(b,{key:0,name:g.meta.svgIcon},null,8,["name"])):(A=g.meta)!=null&&A.elIcon?(p(),S(ie(g.meta.elIcon),{key:1,class:"el-icon"})):V("",!0),x("span",pn,z((I=g.meta)==null?void 0:I.title),1),s.value&&s.value===g.name?(p(),S(b,{key:2,name:"keyboard-enter"})):V("",!0)],44,_n)}),128))])}}});const vn=P(fn,[["__scopeId","data-v-7383ebb0"]]),Ce=n=>(be("data-v-3171d360"),n=n(),ye(),n),mn={class:"search-footer"},hn={class:"search-footer-item"},gn=Ce(()=>x("span",null,"确认",-1)),bn={class:"search-footer-item"},yn=Ce(()=>x("span",null,"切换",-1)),wn={class:"search-footer-item"},xn=Ce(()=>x("span",null,"关闭",-1)),Sn={class:"search-footer-total"},kn=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,t=te(),a=M(()=>t.device===q.Mobile);return(l,o)=>{const s=y("SvgIcon");return p(),T("div",mn,[a.value?V("",!0):(p(),T(X,{key:0},[x("span",hn,[d(s,{name:"keyboard-enter"}),gn]),x("span",bn,[d(s,{name:"keyboard-up"}),d(s,{name:"keyboard-down"}),yn]),x("span",wn,[d(s,{name:"keyboard-esc"}),xn])],64)),x("span",Sn,"共 "+z(e.total)+" 项",1)])}}});const Cn=P(kn,[["__scopeId","data-v-3171d360"]]),Tn=x("p",null,"搜索结果",-1),$n=R({__name:"SearchModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,a=te(),l=pe(),o=L(null),s=L(null),r=L(null),i=L(""),_=Je([]),u=L(void 0),c=L(!1),h=M(()=>a.device===q.Mobile?"80vw":"40vw"),b=M({get(){return t.modelValue},set(E){e("update:modelValue",E)}}),g=M(()=>lt(we().routes)),k=rt(()=>{var w;const E=C(g.value);_.value=E.filter(F=>{var $,N;return i.value?(N=($=F.meta)==null?void 0:$.title)==null?void 0:N.toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim()):!1});const f=(w=_.value)==null?void 0:w.length;u.value=f>0?_.value[0].name:void 0},500),C=(E,f=[])=>(E.forEach(w=>{f.push(w),w.children&&C(w.children,f)}),f),A=()=>{b.value=!1,setTimeout(()=>{i.value="",_.value=[]},200)},I=E=>{var w;if(!r.value)return;const f=r.value.getScrollTop(E);(w=s.value)==null||w.setScrollTop(f)},D=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const f=_.value.findIndex(w=>w.name===u.value);if(f===0){const w=_.value[E-1].name;u.value===w&&E>1?(u.value=_.value[E-2].name,I(E-2)):(u.value=w,I(E-1))}else u.value=_.value[f-1].name,I(f-1)},B=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const f=_.value.map(w=>w.name).lastIndexOf(u.value);if(f===E-1){const w=_.value[0].name;u.value===w&&E>1?(u.value=_.value[1].name,I(1)):(u.value=w,I(0))}else u.value=_.value[f+1].name,I(f+1)},H=()=>{var F;const{length:E}=_.value;if(E===0)return;const f=u.value,w=(F=_.value.find($=>$.name===f))==null?void 0:F.path;if(w&&_e(w)){window.open(w,"_blank","noopener, noreferrer");return}if(!f){de.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{l.push({name:f})}catch{de.error("该菜单有必填的动态参数,无法通过搜索进入");return}A()},O=()=>{c.value=!1};return(E,f)=>{const w=y("SvgIcon"),F=y("el-input"),$=y("el-empty"),N=y("el-dialog");return p(),S(N,{modelValue:b.value,"onUpdate:modelValue":f[2]||(f[2]=K=>b.value=K),onOpened:f[3]||(f[3]=K=>{var Q;return(Q=o.value)==null?void 0:Q.focus()}),onClosed:f[4]||(f[4]=K=>{var Q;return(Q=o.value)==null?void 0:Q.blur()}),onKeydown:[le(D,["up"]),le(B,["down"]),le(H,["enter"])],onKeyup:le(O,["up","down"]),"before-close":A,width:h.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:v(()=>[d(Cn,{total:_.value.length},null,8,["total"])]),default:v(()=>[d(F,{ref_key:"inputRef",ref:o,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=K=>i.value=K),onInput:m(k),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:v(()=>[d(w,{name:"search"})]),_:1},8,["modelValue","onInput"]),_.value.length===0?(p(),S($,{key:0,description:"暂无搜索结果","image-size":100})):(p(),T(X,{key:1},[Tn,d(m(Oe),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:v(()=>[d(vn,{ref_key:"searchResultRef",ref:r,modelValue:u.value,"onUpdate:modelValue":f[1]||(f[1]=K=>u.value=K),list:_.value,isPressUpOrDown:c.value,onClick:H},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","onKeydown","onKeyup","width"])}}});const Mn=R({__name:"index",setup(n){const e=L(!1),t=()=>{e.value=!0};return(a,l)=>{const o=y("SvgIcon"),s=y("el-tooltip");return p(),T("div",null,[d(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:v(()=>[d(o,{name:"search",onClick:t})]),_:1}),d($n,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=r=>e.value=r)},null,8,["modelValue"])])}}});const En=P(Mn,[["__scopeId","data-v-dc5accb4"]]),Vn=n=>(be("data-v-2926c407"),n=n(),ye(),n),An={class:"navigation-bar"},In={class:"right-menu"},Rn={class:"right-menu-avatar"},Ln={target:"_blank",href:"https://juejin.cn/post/7089377403717287972"},Pn={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},Dn={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},Fn=Vn(()=>x("span",{style:{display:"block"}},"退出登录",-1)),Nn=R({__name:"index",setup(n){const e=pe(),t=te(),a=Y(),l=et(),{sidebar:o,device:s}=G(t),{layoutMode:r,showNotify:i,showThemeSwitch:_,showScreenfull:u,showSearchMenu:c}=G(a),h=M(()=>r.value==="top"),b=M(()=>s.value===q.Mobile),g=()=>{t.toggleSidebar(!1)},k=()=>{l.logout(),e.push("/login")};return(C,A)=>{const I=y("el-avatar"),D=y("el-dropdown-item"),B=y("el-dropdown-menu"),H=y("el-dropdown");return p(),T("div",An,[!h.value||b.value?(p(),S(St,{key:0,"is-active":m(o).opened,class:"hamburger",onToggleClick:g},null,8,["is-active"])):V("",!0),!h.value||b.value?(p(),S(Rt,{key:1,class:"breadcrumb"})):V("",!0),h.value&&!b.value?(p(),S(ke,{key:2,class:"sidebar"})):V("",!0),x("div",In,[m(c)?(p(),S(En,{key:0,class:"right-menu-item"})):V("",!0),m(u)?(p(),S(Ue,{key:1,class:"right-menu-item"})):V("",!0),m(_)?(p(),S(ft,{key:2,class:"right-menu-item"})):V("",!0),m(i)?(p(),S(un,{key:3,class:"right-menu-item"})):V("",!0),d(H,{class:"right-menu-item"},{dropdown:v(()=>[d(B,null,{default:v(()=>[x("a",Ln,[d(D,null,{default:v(()=>[j("中文文档")]),_:1})]),x("a",Pn,[d(D,null,{default:v(()=>[j("GitHub")]),_:1})]),x("a",Dn,[d(D,null,{default:v(()=>[j("Gitee")]),_:1})]),d(D,{divided:"",onClick:k},{default:v(()=>[Fn]),_:1})]),_:1})]),default:v(()=>[x("div",Rn,[d(I,{icon:m(ct),size:30},null,8,["icon"]),x("span",null,z(m(l).username),1)])]),_:1})])])}}});const Te=P(Nn,[["__scopeId","data-v-2926c407"]]),zn={class:"select-layout-mode"},Bn=R({__name:"SelectLayoutMode",setup(n){const e=Y(),{layoutMode:t}=G(e),a=M(()=>t.value==="left"),l=M(()=>t.value==="top"),o=M(()=>t.value==="left-top");return(s,r)=>{const i=y("el-aside"),_=y("el-header"),u=y("el-main"),c=y("el-container"),h=y("el-tooltip");return p(),T("div",zn,[d(h,{content:"左侧模式"},{default:v(()=>[d(c,{class:W(["layout-mode left",{active:a.value}]),onClick:r[0]||(r[0]=b=>t.value="left")},{default:v(()=>[d(i),d(c,null,{default:v(()=>[d(_),d(u)]),_:1})]),_:1},8,["class"])]),_:1}),d(h,{content:"顶部模式"},{default:v(()=>[d(c,{class:W(["layout-mode top",{active:l.value}]),onClick:r[1]||(r[1]=b=>t.value="top")},{default:v(()=>[d(_),d(u)]),_:1},8,["class"])]),_:1}),d(h,{content:"混合模式"},{default:v(()=>[d(c,{class:W(["layout-mode left-top",{active:o.value}]),onClick:r[2]||(r[2]=b=>t.value="left-top")},{default:v(()=>[d(_),d(c,null,{default:v(()=>[d(i),d(u)]),_:1})]),_:1},8,["class"])]),_:1})])}}});const On=P(Bn,[["__scopeId","data-v-e7938886"]]),qe=n=>(be("data-v-4d7dda5b"),n=n(),ye(),n),Wn={class:"setting-container"},Hn=qe(()=>x("h4",null,"布局配置",-1)),Un=qe(()=>x("h4",null,"功能配置",-1)),qn={class:"setting-name"},Xn=R({__name:"index",setup(n){const e=Y(),{layoutMode:t,showTagsView:a,showLogo:l,fixedHeader:o,showNotify:s,showThemeSwitch:r,showScreenfull:i,showSearchMenu:_,cacheTagsView:u,showGreyMode:c,showColorWeakness:h}=G(e),b={显示标签栏:a,"显示 Logo":l,"固定 Header":o,显示消息通知:s,显示切换主题按钮:r,显示全屏按钮:i,显示搜索按钮:_,是否缓存标签栏:u,显示灰色模式:c,显示色弱模式:h};return ge(()=>{t.value!=="left"&&(o.value=!0)}),(g,k)=>{const C=y("el-divider"),A=y("el-switch"),I=y("el-button");return p(),T("div",Wn,[Hn,d(On),d(C),Un,(p(),T(X,null,ee(b,(D,B,H)=>x("div",{class:"setting-item",key:H},[x("span",qn,z(B),1),d(A,{modelValue:D.value,"onUpdate:modelValue":O=>D.value=O,disabled:m(t)!=="left"&&B==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(I,{type:"danger",icon:m(it),onClick:m(tt)},{default:v(()=>[j("重 置")]),_:1},8,["icon","onClick"])])}}});const Kn=P(Xn,[["__scopeId","data-v-4d7dda5b"]]),jn={class:"scroll-container"},Gn=200,Jn=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=ae(),a=Y(),l=L(),o=L();let s=0;const r=({scrollLeft:h})=>{s=h},i=({deltaY:h})=>{/^-/.test(h.toString())?u("left"):u("right")},_=()=>{const h=o.value.clientWidth,b=l.value.wrapRef.clientWidth,g=h-b-s;return{scrollbarContentRefWidth:h,scrollbarRefWidth:b,lastDistance:g}},u=(h,b=Gn)=>{let g=0;const{scrollbarContentRefWidth:k,scrollbarRefWidth:C,lastDistance:A}=_();C>k||(h==="left"?g=Math.max(0,s-b):g=Math.min(s+b,s+A),l.value.setScrollLeft(g))},c=()=>{const h=e.tagRefs;for(let b=0;bI){const D=C-I;u("right",D);return}}};return se(t,()=>{Ye(c)},{deep:!0}),(h,b)=>{const g=y("el-icon");return p(),T("div",jn,[d(g,{class:"arrow left",onClick:b[0]||(b[0]=k=>u("left"))},{default:v(()=>[d(m(ut))]),_:1}),d(m(Oe),{ref_key:"scrollbarRef",ref:l,onWheelPassive:i,onScroll:r},{default:v(()=>[x("div",{ref_key:"scrollbarContentRef",ref:o,class:"scrollbar-content"},[ue(h.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(g,{class:"arrow right",onClick:b[1]||(b[1]=k=>u("right"))},{default:v(()=>[d(m(dt))]),_:1}),m(a).showScreenfull?(p(),S(Ue,{key:0,element:".app-main",content:!0,class:"screenfull"})):V("",!0)])}}});const Yn=P(Jn,[["__scopeId","data-v-01845fab"]]),Zn={class:"tags-view-container"},Qn=R({__name:"index",setup(n){const e=Ne(),t=pe(),a=ae(),l=Be(),o=we(),s=L([]),r=L(!1),i=L(0),_=L(0),u=L({});let c=[];const h=f=>f.path===a.path,b=f=>{var w;return(w=f.meta)==null?void 0:w.affix},g=(f,w="/")=>{const F=[];return f.forEach($=>{if(b($)){const N=He.resolve(w,$.path);F.push({fullPath:N,path:N,name:$.name,meta:{...$.meta}})}if($.children){const N=g($.children,$.path);F.push(...N)}}),F},k=()=>{c=g(o.routes);for(const f of c)f.name&&l.addVisitedView(f)},C=()=>{a.name&&(l.addVisitedView(a),l.addCachedView(a))},A=f=>{l.delCachedView(f),t.replace({path:"/redirect"+f.path,query:f.query})},I=f=>{l.delVisitedView(f),l.delCachedView(f),h(f)&&H(l.visitedViews,f)},D=()=>{const f=u.value.fullPath;f!==a.path&&f!==void 0&&t.push(f),l.delOthersVisitedViews(u.value),l.delOthersCachedViews(u.value)},B=f=>{l.delAllVisitedViews(),l.delAllCachedViews(),!c.some(w=>w.path===a.path)&&H(l.visitedViews,f)},H=(f,w)=>{const F=f.slice(-1)[0],$=F==null?void 0:F.fullPath;$!==void 0?t.push($):w.name==="Dashboard"?t.push({path:"/redirect"+w.path,query:w.query}):t.push("/")},O=(f,w)=>{const $=e.proxy.$el.getBoundingClientRect().left,K=e.proxy.$el.offsetWidth-105,Q=w.clientX-$+15;_.value=Q>K?K:Q,i.value=w.clientY,r.value=!0,u.value=f},E=()=>{r.value=!1};return se(a,()=>{C()},{deep:!0}),se(r,f=>{f?document.body.addEventListener("click",E):document.body.removeEventListener("click",E)}),he(()=>{k(),C()}),(f,w)=>{const F=y("el-icon");return p(),T("div",Zn,[d(Yn,{class:"tags-view-wrapper","tag-refs":s.value},{default:v(()=>[(p(!0),T(X,null,ee(m(l).visitedViews,$=>(p(),S(m(Ze),{ref_for:!0,ref_key:"tagRefs",ref:s,key:$.path,class:W([{active:h($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:re(N=>!b($)&&I($),["middle"]),onContextmenu:re(N=>O($,N),["prevent"])},{default:v(()=>{var N;return[j(z((N=$.meta)==null?void 0:N.title)+" ",1),b($)?V("",!0):(p(),S(F,{key:0,size:12,onClick:re(K=>I($),["prevent","stop"])},{default:v(()=>[d(m(_t))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),fe(x("ul",{class:"contextmenu",style:ze({left:_.value+"px",top:i.value+"px"})},[x("li",{onClick:w[0]||(w[0]=$=>A(u.value))},"刷新"),b(u.value)?V("",!0):(p(),T("li",{key:0,onClick:w[1]||(w[1]=$=>I(u.value))},"关闭")),x("li",{onClick:D},"关闭其它"),x("li",{onClick:w[2]||(w[2]=$=>B(u.value))},"关闭所有")],4),[[ve,r.value]])])}}});const $e=P(Qn,[["__scopeId","data-v-6256a9c5"]]),eo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){const e=n;Fe(l=>({"184df93f":t}));const t=e.buttonTop+"px",a=L(!1);return(l,o)=>{const s=y("el-icon"),r=y("el-drawer");return p(),T(X,null,[x("div",{class:"handle-button",onClick:o[0]||(o[0]=i=>a.value=!0)},[d(s,{size:24},{default:v(()=>[d(m(pt))]),_:1})]),d(r,{modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=i=>a.value=i),size:"300px","with-header":!1},{default:v(()=>[ue(l.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}});const to=P(eo,[["__scopeId","data-v-79eaf320"]]),no=R({__name:"LeftMode",setup(n){const e=te(),t=Y(),{showTagsView:a,fixedHeader:l}=G(t),o=M(()=>({hideSidebar:!e.sidebar.opened,openSidebar:e.sidebar.opened,withoutAnimation:e.sidebar.withoutAnimation,mobile:e.device===q.Mobile})),s=()=>{e.closeSidebar(!1)};return(r,i)=>(p(),T("div",{class:W([o.value,"app-wrapper"])},[o.value.mobile&&o.value.openSidebar?(p(),T("div",{key:0,class:"drawer-bg",onClick:s})):V("",!0),d(m(ke),{class:"sidebar-container"}),x("div",{class:W([{hasTagsView:m(a)},"main-container"])},[x("div",{class:W([{"fixed-header":m(l)},"layout-header"])},[d(m(Te)),fe(d(m($e),null,null,512),[[ve,m(a)]])],2),d(m(xe),{class:"app-main"})],2)],2))}});const oo=P(no,[["__scopeId","data-v-f24dda26"]]),so={class:"app-wrapper"},ao={class:"fixed-header layout-header"},lo={class:"content"},ro=R({__name:"TopMode",setup(n){const e=Y(),{showTagsView:t,showLogo:a}=G(e);return(l,o)=>(p(),T("div",so,[x("div",ao,[x("div",lo,[m(a)?(p(),S(m(Se),{key:0,collapse:!1,class:"logo"})):V("",!0),d(m(Te),{class:"navigation-bar"})]),fe(d(m($e),null,null,512),[[ve,m(t)]])]),x("div",{class:W([{hasTagsView:m(t)},"main-container"])},[d(m(xe),{class:"app-main"})],2)]))}});const co=P(ro,[["__scopeId","data-v-8946dd49"]]),io={class:"fixed-header layout-header"},uo={class:"content"},_o=R({__name:"LeftTopMode",setup(n){const e=te(),t=Y(),{showTagsView:a,showLogo:l}=G(t),o=M(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(p(),T("div",{class:W([o.value,"app-wrapper"])},[x("div",io,[m(l)?(p(),S(m(Se),{key:0,collapse:!1,class:"logo"})):V("",!0),x("div",uo,[d(m(Te)),fe(d(m($e),null,null,512),[[ve,m(a)]])])]),x("div",{class:W([{hasTagsView:m(a)},"main-container"])},[d(m(ke),{class:"sidebar-container"}),d(m(xe),{class:"app-main"})],2)],2))}});const po=P(_o,[["__scopeId","data-v-08489ac9"]]),me="--v3-tagsview-height",fo=R({__name:"index",setup(n){gt();const e=te(),t=Y(),{showSettings:a,layoutMode:l,showTagsView:o,showGreyMode:s,showColorWeakness:r}=G(t),i=M(()=>({showGreyMode:s.value,showColorWeakness:r.value})),_=ce(me);return ge(()=>{o.value?Ee(me,_):Ee(me,"0px")}),(u,c)=>(p(),T("div",{class:W(i.value)},[m(l)==="left"||m(e).device===m(q).Mobile?(p(),S(oo,{key:0})):m(l)==="top"?(p(),S(co,{key:1})):m(l)==="left-top"?(p(),S(po,{key:2})):V("",!0),m(a)?(p(),S(m(to),{key:3},{default:v(()=>[d(m(Kn))]),_:1})):V("",!0)],2))}});const yo=P(fo,[["__scopeId","data-v-606e13ce"]]);export{yo as default};
+import{aB as Xe,_ as Ke,r as L,b as se,aC as ae,E as Le,d as he,z as Pe,H as R,e as M,ah as y,l as p,m as T,p as x,V as d,P as v,X as De,O as S,aD as je,u as m,R as ie,aE as pe,F as X,a8 as ee,U as z,a3 as re,I as ue,aa as Ge,S as V,T as j,J as W,aF as G,aG as Fe,w as ge,c as Ne,K as ze,aH as be,aI as ye,s as Je,a9 as le,n as Ye,aJ as Ze,Q as fe,W as ve}from"./vue-09136d94.js";import{g as Qe,s as Me,u as Be,_ as P,a as Y,b as ce,c as we,d as et,r as tt,e as Ee}from"./index-a7e4b819.js";import{h as nt,j as ot,g as st,k as at,b as de,l as lt,n as rt,o as Oe,u as ct,r as it,p as ut,q as dt,s as _t,t as pt}from"./element-3594ebb6.js";import{_ as ft}from"./index.vue_vue_type_script_setup_true_lang-591632e8.js";import"./vxe-e1f17f9a.js";var q=(n=>(n[n.Mobile=0]="Mobile",n[n.Desktop=1]="Desktop",n))(q||{});const vt="opened",We="closed";function mt(n){n?Me(vt):Me(We)}const te=Xe("app",()=>{const n=Ke({opened:Qe()!==We,withoutAnimation:!1}),e=L(q.Desktop);return se(()=>n.opened,o=>mt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),ht=992,gt=()=>{const n=ae(),e=te(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const l=t();e.toggleDevice(l?q.Mobile:q.Desktop),l&&e.closeSidebar(!0)}};se(()=>n.name,()=>{e.device===q.Mobile&&e.sidebar.opened&&e.closeSidebar(!1)}),Le(()=>{window.addEventListener("resize",a)}),he(()=>{t()&&(e.toggleDevice(q.Mobile),e.closeSidebar(!0))}),Pe(()=>{window.removeEventListener("resize",a)})},bt={class:"app-main"},yt={class:"app-scrollbar"},wt=R({__name:"AppMain",setup(n){const e=ae(),t=Be(),a=M(()=>e.path);return(l,o)=>{const s=y("router-view"),r=y("el-backtop");return p(),T("section",bt,[x("div",yt,[d(s,null,{default:v(({Component:i})=>[d(De,{name:"el-fade-in",mode:"out-in"},{default:v(()=>[(p(),S(je,{include:m(t).cachedViews},[(p(),S(ie(i),{key:a.value}))],1032,["include"]))]),_:2},1024)]),_:1})]),d(r),d(r,{target:".app-scrollbar"})])}}});const xe=P(wt,[["__scopeId","data-v-6296b32d"]]),xt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,a=()=>{e("toggleClick")};return(l,o)=>{const s=y("el-icon");return p(),T("div",{onClick:a},[d(s,{size:20,class:"icon"},{default:v(()=>[t.isActive?(p(),S(m(nt),{key:0})):(p(),S(m(ot),{key:1}))]),_:1})])}}});const St=P(xt,[["__scopeId","data-v-252d9bf8"]]);function kt(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){l+=n[o++];continue}break}if(!l)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:l}),t=o;continue}if(a==="("){var r=1,i="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o{a.value=e.matched.filter(r=>{var i,_;return((i=r.meta)==null?void 0:i.title)&&((_=r.meta)==null?void 0:_.breadcrumb)!==!1})},o=r=>Tt(r)(e.params),s=r=>{const{redirect:i,path:_}=r;if(i){t.push(i);return}t.push(o(_))};return se(()=>e.path,r=>{r.startsWith("/redirect/")||l()}),l(),(r,i)=>{const _=y("el-breadcrumb-item"),u=y("el-breadcrumb");return p(),S(u,{class:"app-breadcrumb"},{default:v(()=>[(p(!0),T(X,null,ee(a.value,(c,h)=>(p(),S(_,{key:c.path},{default:v(()=>[c.redirect==="noRedirect"||h===a.value.length-1?(p(),T("span",Vt,z(c.meta.title),1)):(p(),T("a",{key:1,onClick:re(b=>s(c),["prevent"])},z(c.meta.title),9,At))]),_:2},1024))),128))]),_:1})}}});const Rt=P(It,[["__scopeId","data-v-94c6aa4b"]]),_e=n=>/^(https?:|mailto:|tel:)/.test(n),Lt=["href"],Pt=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,a)=>{const l=y("router-link");return m(_e)(e.to)?(p(),T("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ue(t.$slots,"default")],8,Lt)):(p(),S(l,{key:1,to:e.to},{default:v(()=>[ue(t.$slots,"default")]),_:3},8,["to"]))}}});function J(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Ve(n,e){for(var t="",a=0,l=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var i=t.lastIndexOf("/");if(i!==t.length-1){i===-1?(t="",a=0):(t=t.slice(0,i),a=t.length-1-t.lastIndexOf("/")),l=r,o=0;continue}}else if(t.length===2||t.length===1){t="",a=0,l=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",a=2)}else t.length>0?t+="/"+n.slice(l+1,r):t=n.slice(l+1,r),a=r-l-1;l=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function Dt(n,e){var t=e.dir||e.root,a=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+a:t+n+a:a}var oe={resolve:function(){for(var e="",t=!1,a,l=arguments.length-1;l>=-1&&!t;l--){var o;l>=0?o=arguments[l]:(a===void 0&&(a=process.cwd()),o=a),J(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Ve(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(J(e),e.length===0)return".";var t=e.charCodeAt(0)===47,a=e.charCodeAt(e.length-1)===47;return e=Ve(e,!t),e.length===0&&!t&&(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return J(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=a:e+="/"+a)}return e===void 0?".":oe.normalize(e)},relative:function(e,t){if(J(e),J(t),e===t||(e=oe.resolve(e),t=oe.resolve(t),e===t))return"";for(var a=1;a_){if(t.charCodeAt(s+c)===47)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else o>_&&(e.charCodeAt(a+c)===47?u=c:c===0&&(u=0));break}var h=e.charCodeAt(a+c),b=t.charCodeAt(s+c);if(h!==b)break;h===47&&(u=c)}var g="";for(c=a+u+1;c<=l;++c)(c===l||e.charCodeAt(c)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+t.slice(s+u):(s+=u,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(J(e),e.length===0)return".";for(var t=e.charCodeAt(0),a=t===47,l=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){l=s;break}}else o=!1;return l===-1?a?"/":".":a&&l===1?"//":e.slice(0,l)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');J(e);var a=0,l=-1,o=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,i=-1;for(s=e.length-1;s>=0;--s){var _=e.charCodeAt(s);if(_===47){if(!o){a=s+1;break}}else i===-1&&(o=!1,i=s+1),r>=0&&(_===t.charCodeAt(r)?--r===-1&&(l=s):(r=-1,l=i))}return a===l?l=i:l===-1&&(l=e.length),e.slice(a,l)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){a=s+1;break}}else l===-1&&(o=!1,l=s+1);return l===-1?"":e.slice(a,l)}},extname:function(e){J(e);for(var t=-1,a=0,l=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var i=e.charCodeAt(r);if(i===47){if(!o){a=r+1;break}continue}l===-1&&(o=!1,l=r+1),i===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||l===-1||s===0||s===1&&t===l-1&&t===a+1?"":e.slice(t,l)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return Dt("/",e)},parse:function(e){J(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var a=e.charCodeAt(0),l=a===47,o;l?(t.root="/",o=1):o=0;for(var s=-1,r=0,i=-1,_=!0,u=e.length-1,c=0;u>=o;--u){if(a=e.charCodeAt(u),a===47){if(!_){r=u+1;break}continue}i===-1&&(_=!1,i=u+1),a===46?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}return s===-1||i===-1||c===0||c===1&&s===i-1&&s===r+1?i!==-1&&(r===0&&l?t.base=t.name=e.slice(1,i):t.base=t.name=e.slice(r,i)):(r===0&&l?(t.name=e.slice(1,s),t.base=e.slice(1,i)):(t.name=e.slice(r,s),t.base=e.slice(r,i)),t.ext=e.slice(s,i)),r>0?t.dir=e.slice(0,r-1):l&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};oe.posix=oe;var Ft=oe;const He=st(Ft),Nt={key:2},zt=R({__name:"SidebarItem",props:{item:{},isCollapse:{type:Boolean,default:!1},isTop:{type:Boolean,default:!1},isFirstLevel:{type:Boolean,default:!0},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),a=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(i=>{var _;return!((_=i.meta)!=null&&_.hidden)}))??[]}),l=M(()=>a.value.length),o=M(()=>{const r=l.value;switch(!0){case r>1:return null;case r===1:return a.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case _e(r):return r;case _e(e.basePath):return e.basePath;default:return He.resolve(e.basePath,r)}};return(r,i)=>{var b;const _=y("SvgIcon"),u=y("el-menu-item"),c=y("sidebar-item",!0),h=y("el-sub-menu");return(b=e.item.meta)!=null&&b.hidden?V("",!0):(p(),T("div",{key:0,class:W({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(p(),T(X,{key:0},[o.value.meta?(p(),S(Pt,{key:0,to:s(o.value.path)},{default:v(()=>[d(u,{index:s(o.value.path)},Ge({default:v(()=>[o.value.meta.svgIcon?(p(),S(_,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(p(),S(ie(o.value.meta.elIcon),{key:1,class:"el-icon"})):V("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:v(()=>[j(z(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):V("",!0)],64)):(p(),S(h,{key:1,index:s(e.item.path),teleported:""},{title:v(()=>{var g,k,C;return[(g=e.item.meta)!=null&&g.svgIcon?(p(),S(_,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(k=e.item.meta)!=null&&k.elIcon?(p(),S(ie(e.item.meta.elIcon),{key:1,class:"el-icon"})):V("",!0),(C=e.item.meta)!=null&&C.title?(p(),T("span",Nt,z(e.item.meta.title),1)):V("",!0)]}),default:v(()=>[e.item.children?(p(!0),T(X,{key:0},ee(e.item.children,g=>(p(),S(c,{key:g.path,item:g,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":s(g.path)},null,8,["item","is-collapse","base-path"]))),128)):V("",!0)]),_:1},8,["index"]))],2))}}});const Bt=P(zt,[["__scopeId","data-v-72444830"]]),Ot="/v3-admin-vite/static/logo-cc70e06e.png",Wt="/v3-admin-vite/static/logo-text-1-b6b0364d.png",Ht="/v3-admin-vite/static/logo-text-2-eef467fb.png",Ut=["src"],qt=["src"],Xt=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,t=Y(),{layoutMode:a}=G(t);return(l,o)=>{const s=y("router-link");return p(),T("div",{class:W(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":m(a)==="top"}])},[d(De,{name:"layout-logo-fade"},{default:v(()=>[e.collapse?(p(),S(s,{key:"collapse",to:"/"},{default:v(()=>[x("img",{src:m(Ot),class:"layout-logo"},null,8,Ut)]),_:1})):(p(),S(s,{key:"expand",to:"/"},{default:v(()=>[x("img",{src:m(a)!=="left"?m(Ht):m(Wt),class:"layout-logo-text"},null,8,qt)]),_:1}))]),_:1})],2)}}});const Se=P(Xt,[["__scopeId","data-v-8474c76e"]]),Kt=R({__name:"index",setup(n){Fe(f=>({72322718:E.value,"57a52134":H.value,"738aeddc":O.value,"8423c222":B.value}));const e=ce("--v3-sidebar-menu-bg-color"),t=ce("--v3-sidebar-menu-text-color"),a=ce("--v3-sidebar-menu-active-text-color"),l=ae(),o=te(),s=we(),r=Y(),{sidebar:i,device:_}=G(o),{layoutMode:u,showLogo:c}=G(r),h=M(()=>{const{meta:{activeMenu:f},path:w}=l;return f||w}),b=M(()=>!i.value.opened),g=M(()=>u.value==="left"),k=M(()=>u.value==="top"),C=M(()=>_.value===q.Mobile),A=M(()=>g.value&&c.value),I=M(()=>g.value?e:void 0),D=M(()=>g.value?t:void 0),B=M(()=>g.value?a:void 0),H=M(()=>u.value!=="top"?"var(--v3-sidebar-menu-item-height)":"var(--v3-navigationbar-height)"),O=M(()=>u.value!=="top"?"var(--v3-sidebar-menu-hover-bg-color)":"transparent"),E=M(()=>u.value!=="top"?"2px":"0px");return(f,w)=>{const F=y("el-menu"),$=y("el-scrollbar");return p(),T("div",{class:W({"has-logo":A.value})},[A.value?(p(),S(Se,{key:0,collapse:b.value},null,8,["collapse"])):V("",!0),d($,{"wrap-class":"scrollbar-wrapper"},{default:v(()=>[d(F,{"default-active":h.value,collapse:b.value&&!k.value,"background-color":I.value,"text-color":D.value,"active-text-color":B.value,"unique-opened":!0,"collapse-transition":!1,mode:k.value&&!C.value?"horizontal":"vertical"},{default:v(()=>[(p(!0),T(X,null,ee(m(s).routes,N=>(p(),S(Bt,{key:N.path,item:N,"base-path":N.path,"is-collapse":b.value,"is-top":k.value},null,8,["item","base-path","is-collapse","is-top"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}});const ke=P(Kt,[["__scopeId","data-v-72f686ac"]]),jt={class:"card-header"},Gt={class:"card-title"},Jt={class:"card-time"},Yt={key:0,class:"card-avatar"},Zt=["src"],Qt={class:"card-body"},en=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,a)=>{const l=y("el-empty"),o=y("el-tag"),s=y("el-card");return e.list.length===0?(p(),S(l,{key:0})):(p(!0),T(X,{key:1},ee(e.list,(r,i)=>(p(),S(s,{key:i,shadow:"never",class:"card-container"},{header:v(()=>[x("div",jt,[x("div",null,[x("span",null,[x("span",Gt,z(r.title),1),r.extra?(p(),S(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:v(()=>[j(z(r.extra),1)]),_:2},1032,["type"])):V("",!0)]),x("div",Jt,z(r.datetime),1)]),r.avatar?(p(),T("div",Yt,[x("img",{src:r.avatar,width:"34"},null,8,Zt)])):V("",!0)])]),default:v(()=>[x("div",Qt,z(r.description??"No Data"),1)]),_:2},1024))),128))}}});const tn=P(en,[["__scopeId","data-v-137655f9"]]),nn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"半年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"一年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],on=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],sn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:""},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],an={class:"notify"},ln={class:"notify-history"},Ae=99,rn=350,cn=R({__name:"index",setup(n){const e=M(()=>a.value.reduce((o,s)=>o+s.list.length,0)),t=L("通知"),a=L([{name:"通知",type:"primary",list:nn},{name:"消息",type:"danger",list:on},{name:"待办",type:"warning",list:sn}]),l=()=>{de.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=y("el-icon"),i=y("el-tooltip"),_=y("el-badge"),u=y("el-scrollbar"),c=y("el-tab-pane"),h=y("el-tabs"),b=y("el-button"),g=y("el-popover");return p(),T("div",an,[d(g,{placement:"bottom",width:rn,trigger:"click"},{reference:v(()=>[d(_,{value:e.value,max:Ae,hidden:e.value===0},{default:v(()=>[d(i,{effect:"dark",content:"消息通知",placement:"bottom"},{default:v(()=>[d(r,{size:20},{default:v(()=>[d(m(at))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:v(()=>[d(h,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=k=>t.value=k),class:"demo-tabs",stretch:""},{default:v(()=>[(p(!0),T(X,null,ee(a.value,(k,C)=>(p(),S(c,{name:k.name,key:C},{label:v(()=>[j(z(k.name)+" ",1),d(_,{value:k.list.length,max:Ae,type:k.type},null,8,["value","type"])]),default:v(()=>[d(u,{height:"400px"},{default:v(()=>[d(tn,{list:k.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),x("div",ln,[d(b,{link:"",onClick:l},{default:v(()=>[j("查看"+z(t.value)+"历史",1)]),_:1})])]),_:1})])}}});const un=P(cn,[["__scopeId","data-v-50089150"]]),Ie=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Z=(()=>{if(typeof document>"u")return!1;const n=Ie[0],e={};for(const t of Ie)if((t==null?void 0:t[1])in document){for(const[l,o]of t.entries())e[n[l]]=o;return e}return!1})(),Re={change:Z.fullscreenchange,error:Z.fullscreenerror};let U={request(n=document.documentElement,e){return new Promise((t,a)=>{const l=()=>{U.off("change",l),t()};U.on("change",l);const o=n[Z.requestFullscreen](e);o instanceof Promise&&o.then(l).catch(a)})},exit(){return new Promise((n,e)=>{if(!U.isFullscreen){n();return}const t=()=>{U.off("change",t),n()};U.on("change",t);const a=document[Z.exitFullscreen]();a instanceof Promise&&a.then(t).catch(e)})},toggle(n,e){return U.isFullscreen?U.exit():U.request(n,e)},onchange(n){U.on("change",n)},onerror(n){U.on("error",n)},on(n,e){const t=Re[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Re[n];t&&document.removeEventListener(t,e,!1)},raw:Z};Object.defineProperties(U,{isFullscreen:{get:()=>!!document[Z.fullscreenElement]},element:{enumerable:!0,get:()=>document[Z.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Z.fullscreenEnabled]}});Z||(U={isEnabled:!1});const ne=U,dn=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=L(!1),a=M(()=>t.value?e.exitTips:e.openTips),l=M(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const c=document.querySelector(e.element)||void 0;ne.isEnabled?ne.toggle(c):de.warning("您的浏览器无法工作")},s=()=>{t.value=ne.isFullscreen};ge(c=>{ne.on("change",s),c(()=>{ne.isEnabled&&ne.off("change",s)})});const r=L(!1),i=M(()=>r.value?"内容区复原":"内容区放大"),_=M(()=>r.value?"fullscreen-exit":"fullscreen"),u=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(c,h)=>{const b=y("SvgIcon"),g=y("el-tooltip"),k=y("el-dropdown-item"),C=y("el-dropdown-menu"),A=y("el-dropdown");return p(),T("div",null,[c.content?(p(),S(A,{key:1},{dropdown:v(()=>[d(C,null,{default:v(()=>[d(k,{onClick:u},{default:v(()=>[j(z(i.value),1)]),_:1}),d(k,{onClick:o,disabled:t.value},{default:v(()=>[j("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:v(()=>[d(b,{name:_.value},null,8,["name"])]),_:1})):(p(),S(g,{key:0,effect:"dark",content:a.value,placement:"bottom"},{default:v(()=>[d(b,{name:l.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}});const Ue=P(dn,[["__scopeId","data-v-9e7c36e4"]]),_n=["onMouseenter"],pn={class:"result-item-title"},fn=R({__name:"SearchResult",props:{modelValue:{},list:{},isPressUpOrDown:{type:Boolean}},emits:["update:modelValue"],setup(n,{expose:e,emit:t}){const a=n,l=Ne(),o=L(0),s=M({get(){return a.modelValue},set(c){t("update:modelValue",c)}}),r=c=>{const h=c.name===s.value;return{background:h?"var(--el-color-primary)":"",color:h?"#fff":""}},i=c=>{a.isPressUpOrDown||(s.value=c.name)},_=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},u=c=>{var k;const h=(k=l==null?void 0:l.proxy)==null?void 0:k.$refs[`resultItemRef${c}`];if(!h)return 0;const g=h[0].offsetTop+128;return g>o.value?g-o.value:0};return Le(()=>{window.addEventListener("resize",_)}),he(()=>{_()}),Pe(()=>{window.removeEventListener("resize",_)}),e({getScrollTop:u}),(c,h)=>{const b=y("SvgIcon");return p(),T("div",null,[(p(!0),T(X,null,ee(c.list,(g,k)=>{var C,A,I;return p(),T("div",{key:k,ref_for:!0,ref:`resultItemRef${k}`,class:"result-item",style:ze(r(g)),onMouseenter:D=>i(g)},[(C=g.meta)!=null&&C.svgIcon?(p(),S(b,{key:0,name:g.meta.svgIcon},null,8,["name"])):(A=g.meta)!=null&&A.elIcon?(p(),S(ie(g.meta.elIcon),{key:1,class:"el-icon"})):V("",!0),x("span",pn,z((I=g.meta)==null?void 0:I.title),1),s.value&&s.value===g.name?(p(),S(b,{key:2,name:"keyboard-enter"})):V("",!0)],44,_n)}),128))])}}});const vn=P(fn,[["__scopeId","data-v-7383ebb0"]]),Ce=n=>(be("data-v-3171d360"),n=n(),ye(),n),mn={class:"search-footer"},hn={class:"search-footer-item"},gn=Ce(()=>x("span",null,"确认",-1)),bn={class:"search-footer-item"},yn=Ce(()=>x("span",null,"切换",-1)),wn={class:"search-footer-item"},xn=Ce(()=>x("span",null,"关闭",-1)),Sn={class:"search-footer-total"},kn=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,t=te(),a=M(()=>t.device===q.Mobile);return(l,o)=>{const s=y("SvgIcon");return p(),T("div",mn,[a.value?V("",!0):(p(),T(X,{key:0},[x("span",hn,[d(s,{name:"keyboard-enter"}),gn]),x("span",bn,[d(s,{name:"keyboard-up"}),d(s,{name:"keyboard-down"}),yn]),x("span",wn,[d(s,{name:"keyboard-esc"}),xn])],64)),x("span",Sn,"共 "+z(e.total)+" 项",1)])}}});const Cn=P(kn,[["__scopeId","data-v-3171d360"]]),Tn=x("p",null,"搜索结果",-1),$n=R({__name:"SearchModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,a=te(),l=pe(),o=L(null),s=L(null),r=L(null),i=L(""),_=Je([]),u=L(void 0),c=L(!1),h=M(()=>a.device===q.Mobile?"80vw":"40vw"),b=M({get(){return t.modelValue},set(E){e("update:modelValue",E)}}),g=M(()=>lt(we().routes)),k=rt(()=>{var w;const E=C(g.value);_.value=E.filter(F=>{var $,N;return i.value?(N=($=F.meta)==null?void 0:$.title)==null?void 0:N.toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim()):!1});const f=(w=_.value)==null?void 0:w.length;u.value=f>0?_.value[0].name:void 0},500),C=(E,f=[])=>(E.forEach(w=>{f.push(w),w.children&&C(w.children,f)}),f),A=()=>{b.value=!1,setTimeout(()=>{i.value="",_.value=[]},200)},I=E=>{var w;if(!r.value)return;const f=r.value.getScrollTop(E);(w=s.value)==null||w.setScrollTop(f)},D=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const f=_.value.findIndex(w=>w.name===u.value);if(f===0){const w=_.value[E-1].name;u.value===w&&E>1?(u.value=_.value[E-2].name,I(E-2)):(u.value=w,I(E-1))}else u.value=_.value[f-1].name,I(f-1)},B=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const f=_.value.map(w=>w.name).lastIndexOf(u.value);if(f===E-1){const w=_.value[0].name;u.value===w&&E>1?(u.value=_.value[1].name,I(1)):(u.value=w,I(0))}else u.value=_.value[f+1].name,I(f+1)},H=()=>{var F;const{length:E}=_.value;if(E===0)return;const f=u.value,w=(F=_.value.find($=>$.name===f))==null?void 0:F.path;if(w&&_e(w)){window.open(w,"_blank","noopener, noreferrer");return}if(!f){de.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{l.push({name:f})}catch{de.error("该菜单有必填的动态参数,无法通过搜索进入");return}A()},O=()=>{c.value=!1};return(E,f)=>{const w=y("SvgIcon"),F=y("el-input"),$=y("el-empty"),N=y("el-dialog");return p(),S(N,{modelValue:b.value,"onUpdate:modelValue":f[2]||(f[2]=K=>b.value=K),onOpened:f[3]||(f[3]=K=>{var Q;return(Q=o.value)==null?void 0:Q.focus()}),onClosed:f[4]||(f[4]=K=>{var Q;return(Q=o.value)==null?void 0:Q.blur()}),onKeydown:[le(D,["up"]),le(B,["down"]),le(H,["enter"])],onKeyup:le(O,["up","down"]),"before-close":A,width:h.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:v(()=>[d(Cn,{total:_.value.length},null,8,["total"])]),default:v(()=>[d(F,{ref_key:"inputRef",ref:o,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=K=>i.value=K),onInput:m(k),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:v(()=>[d(w,{name:"search"})]),_:1},8,["modelValue","onInput"]),_.value.length===0?(p(),S($,{key:0,description:"暂无搜索结果","image-size":100})):(p(),T(X,{key:1},[Tn,d(m(Oe),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:v(()=>[d(vn,{ref_key:"searchResultRef",ref:r,modelValue:u.value,"onUpdate:modelValue":f[1]||(f[1]=K=>u.value=K),list:_.value,isPressUpOrDown:c.value,onClick:H},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","onKeydown","onKeyup","width"])}}});const Mn=R({__name:"index",setup(n){const e=L(!1),t=()=>{e.value=!0};return(a,l)=>{const o=y("SvgIcon"),s=y("el-tooltip");return p(),T("div",null,[d(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:v(()=>[d(o,{name:"search",onClick:t})]),_:1}),d($n,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=r=>e.value=r)},null,8,["modelValue"])])}}});const En=P(Mn,[["__scopeId","data-v-dc5accb4"]]),Vn=n=>(be("data-v-2926c407"),n=n(),ye(),n),An={class:"navigation-bar"},In={class:"right-menu"},Rn={class:"right-menu-avatar"},Ln={target:"_blank",href:"https://juejin.cn/post/7089377403717287972"},Pn={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},Dn={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},Fn=Vn(()=>x("span",{style:{display:"block"}},"退出登录",-1)),Nn=R({__name:"index",setup(n){const e=pe(),t=te(),a=Y(),l=et(),{sidebar:o,device:s}=G(t),{layoutMode:r,showNotify:i,showThemeSwitch:_,showScreenfull:u,showSearchMenu:c}=G(a),h=M(()=>r.value==="top"),b=M(()=>s.value===q.Mobile),g=()=>{t.toggleSidebar(!1)},k=()=>{l.logout(),e.push("/login")};return(C,A)=>{const I=y("el-avatar"),D=y("el-dropdown-item"),B=y("el-dropdown-menu"),H=y("el-dropdown");return p(),T("div",An,[!h.value||b.value?(p(),S(St,{key:0,"is-active":m(o).opened,class:"hamburger",onToggleClick:g},null,8,["is-active"])):V("",!0),!h.value||b.value?(p(),S(Rt,{key:1,class:"breadcrumb"})):V("",!0),h.value&&!b.value?(p(),S(ke,{key:2,class:"sidebar"})):V("",!0),x("div",In,[m(c)?(p(),S(En,{key:0,class:"right-menu-item"})):V("",!0),m(u)?(p(),S(Ue,{key:1,class:"right-menu-item"})):V("",!0),m(_)?(p(),S(ft,{key:2,class:"right-menu-item"})):V("",!0),m(i)?(p(),S(un,{key:3,class:"right-menu-item"})):V("",!0),d(H,{class:"right-menu-item"},{dropdown:v(()=>[d(B,null,{default:v(()=>[x("a",Ln,[d(D,null,{default:v(()=>[j("中文文档")]),_:1})]),x("a",Pn,[d(D,null,{default:v(()=>[j("GitHub")]),_:1})]),x("a",Dn,[d(D,null,{default:v(()=>[j("Gitee")]),_:1})]),d(D,{divided:"",onClick:k},{default:v(()=>[Fn]),_:1})]),_:1})]),default:v(()=>[x("div",Rn,[d(I,{icon:m(ct),size:30},null,8,["icon"]),x("span",null,z(m(l).username),1)])]),_:1})])])}}});const Te=P(Nn,[["__scopeId","data-v-2926c407"]]),zn={class:"select-layout-mode"},Bn=R({__name:"SelectLayoutMode",setup(n){const e=Y(),{layoutMode:t}=G(e),a=M(()=>t.value==="left"),l=M(()=>t.value==="top"),o=M(()=>t.value==="left-top");return(s,r)=>{const i=y("el-aside"),_=y("el-header"),u=y("el-main"),c=y("el-container"),h=y("el-tooltip");return p(),T("div",zn,[d(h,{content:"左侧模式"},{default:v(()=>[d(c,{class:W(["layout-mode left",{active:a.value}]),onClick:r[0]||(r[0]=b=>t.value="left")},{default:v(()=>[d(i),d(c,null,{default:v(()=>[d(_),d(u)]),_:1})]),_:1},8,["class"])]),_:1}),d(h,{content:"顶部模式"},{default:v(()=>[d(c,{class:W(["layout-mode top",{active:l.value}]),onClick:r[1]||(r[1]=b=>t.value="top")},{default:v(()=>[d(_),d(u)]),_:1},8,["class"])]),_:1}),d(h,{content:"混合模式"},{default:v(()=>[d(c,{class:W(["layout-mode left-top",{active:o.value}]),onClick:r[2]||(r[2]=b=>t.value="left-top")},{default:v(()=>[d(_),d(c,null,{default:v(()=>[d(i),d(u)]),_:1})]),_:1},8,["class"])]),_:1})])}}});const On=P(Bn,[["__scopeId","data-v-e7938886"]]),qe=n=>(be("data-v-4d7dda5b"),n=n(),ye(),n),Wn={class:"setting-container"},Hn=qe(()=>x("h4",null,"布局配置",-1)),Un=qe(()=>x("h4",null,"功能配置",-1)),qn={class:"setting-name"},Xn=R({__name:"index",setup(n){const e=Y(),{layoutMode:t,showTagsView:a,showLogo:l,fixedHeader:o,showNotify:s,showThemeSwitch:r,showScreenfull:i,showSearchMenu:_,cacheTagsView:u,showGreyMode:c,showColorWeakness:h}=G(e),b={显示标签栏:a,"显示 Logo":l,"固定 Header":o,显示消息通知:s,显示切换主题按钮:r,显示全屏按钮:i,显示搜索按钮:_,是否缓存标签栏:u,显示灰色模式:c,显示色弱模式:h};return ge(()=>{t.value!=="left"&&(o.value=!0)}),(g,k)=>{const C=y("el-divider"),A=y("el-switch"),I=y("el-button");return p(),T("div",Wn,[Hn,d(On),d(C),Un,(p(),T(X,null,ee(b,(D,B,H)=>x("div",{class:"setting-item",key:H},[x("span",qn,z(B),1),d(A,{modelValue:D.value,"onUpdate:modelValue":O=>D.value=O,disabled:m(t)!=="left"&&B==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(I,{type:"danger",icon:m(it),onClick:m(tt)},{default:v(()=>[j("重 置")]),_:1},8,["icon","onClick"])])}}});const Kn=P(Xn,[["__scopeId","data-v-4d7dda5b"]]),jn={class:"scroll-container"},Gn=200,Jn=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=ae(),a=Y(),l=L(),o=L();let s=0;const r=({scrollLeft:h})=>{s=h},i=({deltaY:h})=>{/^-/.test(h.toString())?u("left"):u("right")},_=()=>{const h=o.value.clientWidth,b=l.value.wrapRef.clientWidth,g=h-b-s;return{scrollbarContentRefWidth:h,scrollbarRefWidth:b,lastDistance:g}},u=(h,b=Gn)=>{let g=0;const{scrollbarContentRefWidth:k,scrollbarRefWidth:C,lastDistance:A}=_();C>k||(h==="left"?g=Math.max(0,s-b):g=Math.min(s+b,s+A),l.value.setScrollLeft(g))},c=()=>{const h=e.tagRefs;for(let b=0;bI){const D=C-I;u("right",D);return}}};return se(t,()=>{Ye(c)},{deep:!0}),(h,b)=>{const g=y("el-icon");return p(),T("div",jn,[d(g,{class:"arrow left",onClick:b[0]||(b[0]=k=>u("left"))},{default:v(()=>[d(m(ut))]),_:1}),d(m(Oe),{ref_key:"scrollbarRef",ref:l,onWheelPassive:i,onScroll:r},{default:v(()=>[x("div",{ref_key:"scrollbarContentRef",ref:o,class:"scrollbar-content"},[ue(h.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(g,{class:"arrow right",onClick:b[1]||(b[1]=k=>u("right"))},{default:v(()=>[d(m(dt))]),_:1}),m(a).showScreenfull?(p(),S(Ue,{key:0,element:".app-main",content:!0,class:"screenfull"})):V("",!0)])}}});const Yn=P(Jn,[["__scopeId","data-v-01845fab"]]),Zn={class:"tags-view-container"},Qn=R({__name:"index",setup(n){const e=Ne(),t=pe(),a=ae(),l=Be(),o=we(),s=L([]),r=L(!1),i=L(0),_=L(0),u=L({});let c=[];const h=f=>f.path===a.path,b=f=>{var w;return(w=f.meta)==null?void 0:w.affix},g=(f,w="/")=>{const F=[];return f.forEach($=>{if(b($)){const N=He.resolve(w,$.path);F.push({fullPath:N,path:N,name:$.name,meta:{...$.meta}})}if($.children){const N=g($.children,$.path);F.push(...N)}}),F},k=()=>{c=g(o.routes);for(const f of c)f.name&&l.addVisitedView(f)},C=()=>{a.name&&(l.addVisitedView(a),l.addCachedView(a))},A=f=>{l.delCachedView(f),t.replace({path:"/redirect"+f.path,query:f.query})},I=f=>{l.delVisitedView(f),l.delCachedView(f),h(f)&&H(l.visitedViews,f)},D=()=>{const f=u.value.fullPath;f!==a.path&&f!==void 0&&t.push(f),l.delOthersVisitedViews(u.value),l.delOthersCachedViews(u.value)},B=f=>{l.delAllVisitedViews(),l.delAllCachedViews(),!c.some(w=>w.path===a.path)&&H(l.visitedViews,f)},H=(f,w)=>{const F=f.slice(-1)[0],$=F==null?void 0:F.fullPath;$!==void 0?t.push($):w.name==="Dashboard"?t.push({path:"/redirect"+w.path,query:w.query}):t.push("/")},O=(f,w)=>{const $=e.proxy.$el.getBoundingClientRect().left,K=e.proxy.$el.offsetWidth-105,Q=w.clientX-$+15;_.value=Q>K?K:Q,i.value=w.clientY,r.value=!0,u.value=f},E=()=>{r.value=!1};return se(a,()=>{C()},{deep:!0}),se(r,f=>{f?document.body.addEventListener("click",E):document.body.removeEventListener("click",E)}),he(()=>{k(),C()}),(f,w)=>{const F=y("el-icon");return p(),T("div",Zn,[d(Yn,{class:"tags-view-wrapper","tag-refs":s.value},{default:v(()=>[(p(!0),T(X,null,ee(m(l).visitedViews,$=>(p(),S(m(Ze),{ref_for:!0,ref_key:"tagRefs",ref:s,key:$.path,class:W([{active:h($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:re(N=>!b($)&&I($),["middle"]),onContextmenu:re(N=>O($,N),["prevent"])},{default:v(()=>{var N;return[j(z((N=$.meta)==null?void 0:N.title)+" ",1),b($)?V("",!0):(p(),S(F,{key:0,size:12,onClick:re(K=>I($),["prevent","stop"])},{default:v(()=>[d(m(_t))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),fe(x("ul",{class:"contextmenu",style:ze({left:_.value+"px",top:i.value+"px"})},[x("li",{onClick:w[0]||(w[0]=$=>A(u.value))},"刷新"),b(u.value)?V("",!0):(p(),T("li",{key:0,onClick:w[1]||(w[1]=$=>I(u.value))},"关闭")),x("li",{onClick:D},"关闭其它"),x("li",{onClick:w[2]||(w[2]=$=>B(u.value))},"关闭所有")],4),[[ve,r.value]])])}}});const $e=P(Qn,[["__scopeId","data-v-6256a9c5"]]),eo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){const e=n;Fe(l=>({"184df93f":t}));const t=e.buttonTop+"px",a=L(!1);return(l,o)=>{const s=y("el-icon"),r=y("el-drawer");return p(),T(X,null,[x("div",{class:"handle-button",onClick:o[0]||(o[0]=i=>a.value=!0)},[d(s,{size:24},{default:v(()=>[d(m(pt))]),_:1})]),d(r,{modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=i=>a.value=i),size:"300px","with-header":!1},{default:v(()=>[ue(l.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}});const to=P(eo,[["__scopeId","data-v-79eaf320"]]),no=R({__name:"LeftMode",setup(n){const e=te(),t=Y(),{showTagsView:a,fixedHeader:l}=G(t),o=M(()=>({hideSidebar:!e.sidebar.opened,openSidebar:e.sidebar.opened,withoutAnimation:e.sidebar.withoutAnimation,mobile:e.device===q.Mobile})),s=()=>{e.closeSidebar(!1)};return(r,i)=>(p(),T("div",{class:W([o.value,"app-wrapper"])},[o.value.mobile&&o.value.openSidebar?(p(),T("div",{key:0,class:"drawer-bg",onClick:s})):V("",!0),d(m(ke),{class:"sidebar-container"}),x("div",{class:W([{hasTagsView:m(a)},"main-container"])},[x("div",{class:W([{"fixed-header":m(l)},"layout-header"])},[d(m(Te)),fe(d(m($e),null,null,512),[[ve,m(a)]])],2),d(m(xe),{class:"app-main"})],2)],2))}});const oo=P(no,[["__scopeId","data-v-f24dda26"]]),so={class:"app-wrapper"},ao={class:"fixed-header layout-header"},lo={class:"content"},ro=R({__name:"TopMode",setup(n){const e=Y(),{showTagsView:t,showLogo:a}=G(e);return(l,o)=>(p(),T("div",so,[x("div",ao,[x("div",lo,[m(a)?(p(),S(m(Se),{key:0,collapse:!1,class:"logo"})):V("",!0),d(m(Te),{class:"navigation-bar"})]),fe(d(m($e),null,null,512),[[ve,m(t)]])]),x("div",{class:W([{hasTagsView:m(t)},"main-container"])},[d(m(xe),{class:"app-main"})],2)]))}});const co=P(ro,[["__scopeId","data-v-8946dd49"]]),io={class:"fixed-header layout-header"},uo={class:"content"},_o=R({__name:"LeftTopMode",setup(n){const e=te(),t=Y(),{showTagsView:a,showLogo:l}=G(t),o=M(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(p(),T("div",{class:W([o.value,"app-wrapper"])},[x("div",io,[m(l)?(p(),S(m(Se),{key:0,collapse:!1,class:"logo"})):V("",!0),x("div",uo,[d(m(Te)),fe(d(m($e),null,null,512),[[ve,m(a)]])])]),x("div",{class:W([{hasTagsView:m(a)},"main-container"])},[d(m(ke),{class:"sidebar-container"}),d(m(xe),{class:"app-main"})],2)],2))}});const po=P(_o,[["__scopeId","data-v-08489ac9"]]),me="--v3-tagsview-height",fo=R({__name:"index",setup(n){gt();const e=te(),t=Y(),{showSettings:a,layoutMode:l,showTagsView:o,showGreyMode:s,showColorWeakness:r}=G(t),i=M(()=>({showGreyMode:s.value,showColorWeakness:r.value})),_=ce(me);return ge(()=>{o.value?Ee(me,_):Ee(me,"0px")}),(u,c)=>(p(),T("div",{class:W(i.value)},[m(l)==="left"||m(e).device===m(q).Mobile?(p(),S(oo,{key:0})):m(l)==="top"?(p(),S(co,{key:1})):m(l)==="left-top"?(p(),S(po,{key:2})):V("",!0),m(a)?(p(),S(m(to),{key:3},{default:v(()=>[d(m(Kn))]),_:1})):V("",!0)],2))}});const yo=P(fo,[["__scopeId","data-v-606e13ce"]]);export{yo as default};
diff --git a/static/index-362bcf77.js b/static/index-dd8c4877.js
similarity index 83%
rename from static/index-362bcf77.js
rename to static/index-dd8c4877.js
index d08cc386..87032b1d 100644
--- a/static/index-362bcf77.js
+++ b/static/index-dd8c4877.js
@@ -1 +1 @@
-import{_ as n}from"./index-15431bfa.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"二级路由 - menu1"},{default:s(()=>[o(t)]),_:1})])}const x=n(_,[["render",m]]);export{x as default};
+import{_ as n}from"./index-a7e4b819.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-09136d94.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"二级路由 - menu1"},{default:s(()=>[o(t)]),_:1})])}const x=n(_,[["render",m]]);export{x as default};
diff --git a/static/index-36be640d.js b/static/index-e853044e.js
similarity index 97%
rename from static/index-36be640d.js
rename to static/index-e853044e.js
index a2b01562..b4d1bdde 100644
--- a/static/index-36be640d.js
+++ b/static/index-e853044e.js
@@ -1 +1 @@
-import{g as T,d as D}from"./index-7945ece0.js";import{V as l,H as P,r as y,_,n as $,ah as v,l as M,m as S,P as p,T as b,L as k}from"./vue-09136d94.js";import{H as R,b as w}from"./element-3594ebb6.js";import"./index-15431bfa.js";import"./vxe-e1f17f9a.js";const E={default:({row:h,column:s})=>{const i=h[s.field];return[l("span",{class:`el-tag el-tag--${i==="admin"?"":"warning"} el-tag--plain`},[i])]}},U=E,F={default:({row:h,column:s})=>{const i=h[s.field],[c,g]=i?["success","启用"]:["danger","禁用"];return[l("span",{class:`el-tag el-tag--${c} el-tag--plain`},[g])]}},O=F,V={class:"app-container"},G=P({name:"VxeTable",__name:"index",setup(h){const s=y(),i=_({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:U},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:O},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,a.clearTable(),new Promise(o=>{let r=0,u=[];const d=n=>{n!=null&&n.data&&(r=n.data.total,u=n.data.list),i.loading=!1,o({total:r,result:u})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};T(f).then(d).catch(d)}))}}}),c=y(),g=_({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=x.value)==null||e.clearValidate(),Promise.resolve()}}),x=y(),m=_({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=c.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>a.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),a=_({isUpdate:!0,commitQuery:()=>{var e;return(e=s.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=s.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,r,u,d;e?(a.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(a.isUpdate=!1,g.title="新增用户");const t=(u=(r=(o=m.items)==null?void 0:o[0])==null?void 0:r.itemRender)==null?void 0:u.props;t&&(t.disabled=a.isUpdate),(d=c.value)==null||d.open(),$(()=>{var f,n;!a.isUpdate&&((f=x.value)==null||f.reset()),(n=x.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=x.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var r;m.loading=!1,(r=c.value)==null||r.close(),w.success("操作成功"),!a.isUpdate&&a.afterInsert(),a.commitQuery()};a.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=s.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};R.confirm(t,"提示",o).then(()=>{D(e.id).then(()=>{w.success("删除成功"),a.afterDelete(),a.commitQuery()})})},afterDelete:()=>{var o,r;const e=s.value.getData(),t=(r=(o=s.value)==null?void 0:o.getProxyInfo())==null?void 0:r.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=v("vxe-button"),r=v("el-button"),u=v("vxe-grid"),d=v("vxe-form"),f=v("vxe-modal");return M(),S("div",V,[l(u,k({ref_key:"xGridDom",ref:s},i),{"toolbar-btns":p(()=>[l(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>a.onShowModal())},{default:p(()=>[b("新增用户")]),_:1}),l(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>[b("批量删除")]),_:1})]),"row-operate":p(({row:n})=>[l(r,{link:"",type:"primary",onClick:C=>a.onShowModal(n)},{default:p(()=>[b("修改")]),_:2},1032,["onClick"]),l(r,{link:"",type:"danger",onClick:C=>a.onDelete(n)},{default:p(()=>[b("删除")]),_:2},1032,["onClick"])]),_:1},16),l(f,k({ref_key:"xModalDom",ref:c},g),{default:p(()=>[l(d,k({ref_key:"xFormDom",ref:x},m),null,16)]),_:1},16)])}}});export{G as default};
+import{g as T,d as D}from"./index-a09343dd.js";import{V as l,H as P,r as y,_,n as $,ah as v,l as M,m as S,P as p,T as b,L as k}from"./vue-09136d94.js";import{H as R,b as w}from"./element-3594ebb6.js";import"./index-a7e4b819.js";import"./vxe-e1f17f9a.js";const E={default:({row:h,column:s})=>{const i=h[s.field];return[l("span",{class:`el-tag el-tag--${i==="admin"?"":"warning"} el-tag--plain`},[i])]}},U=E,F={default:({row:h,column:s})=>{const i=h[s.field],[c,g]=i?["success","启用"]:["danger","禁用"];return[l("span",{class:`el-tag el-tag--${c} el-tag--plain`},[g])]}},O=F,V={class:"app-container"},G=P({name:"VxeTable",__name:"index",setup(h){const s=y(),i=_({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:U},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:O},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,a.clearTable(),new Promise(o=>{let r=0,u=[];const d=n=>{n!=null&&n.data&&(r=n.data.total,u=n.data.list),i.loading=!1,o({total:r,result:u})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};T(f).then(d).catch(d)}))}}}),c=y(),g=_({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=x.value)==null||e.clearValidate(),Promise.resolve()}}),x=y(),m=_({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=c.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>a.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),a=_({isUpdate:!0,commitQuery:()=>{var e;return(e=s.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=s.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,r,u,d;e?(a.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(a.isUpdate=!1,g.title="新增用户");const t=(u=(r=(o=m.items)==null?void 0:o[0])==null?void 0:r.itemRender)==null?void 0:u.props;t&&(t.disabled=a.isUpdate),(d=c.value)==null||d.open(),$(()=>{var f,n;!a.isUpdate&&((f=x.value)==null||f.reset()),(n=x.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=x.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var r;m.loading=!1,(r=c.value)==null||r.close(),w.success("操作成功"),!a.isUpdate&&a.afterInsert(),a.commitQuery()};a.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=s.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};R.confirm(t,"提示",o).then(()=>{D(e.id).then(()=>{w.success("删除成功"),a.afterDelete(),a.commitQuery()})})},afterDelete:()=>{var o,r;const e=s.value.getData(),t=(r=(o=s.value)==null?void 0:o.getProxyInfo())==null?void 0:r.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=v("vxe-button"),r=v("el-button"),u=v("vxe-grid"),d=v("vxe-form"),f=v("vxe-modal");return M(),S("div",V,[l(u,k({ref_key:"xGridDom",ref:s},i),{"toolbar-btns":p(()=>[l(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>a.onShowModal())},{default:p(()=>[b("新增用户")]),_:1}),l(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>[b("批量删除")]),_:1})]),"row-operate":p(({row:n})=>[l(r,{link:"",type:"primary",onClick:C=>a.onShowModal(n)},{default:p(()=>[b("修改")]),_:2},1032,["onClick"]),l(r,{link:"",type:"danger",onClick:C=>a.onDelete(n)},{default:p(()=>[b("删除")]),_:2},1032,["onClick"])]),_:1},16),l(f,k({ref_key:"xModalDom",ref:c},g),{default:p(()=>[l(d,k({ref_key:"xFormDom",ref:x},m),null,16)]),_:1},16)])}}});export{G as default};
diff --git a/static/index.vue_vue_type_script_setup_true_lang-fc9a186a.js b/static/index.vue_vue_type_script_setup_true_lang-591632e8.js
similarity index 92%
rename from static/index.vue_vue_type_script_setup_true_lang-fc9a186a.js
rename to static/index.vue_vue_type_script_setup_true_lang-591632e8.js
index 14194a67..0b1623ea 100644
--- a/static/index.vue_vue_type_script_setup_true_lang-fc9a186a.js
+++ b/static/index.vue_vue_type_script_setup_true_lang-591632e8.js
@@ -1 +1 @@
-import{h as k}from"./index-15431bfa.js";import{A as h}from"./element-3594ebb6.js";import{H as g,ah as o,l,O as m,P as e,V as n,m as C,a8 as x,u as t,F as B,p as s,U as b}from"./vue-09136d94.js";const L=g({__name:"index",setup(v){const{themeList:c,activeThemeName:d,setTheme:r}=k();return(N,T)=>{const _=o("el-icon"),p=o("el-tooltip"),i=o("el-dropdown-item"),u=o("el-dropdown-menu"),f=o("el-dropdown");return l(),m(f,{trigger:"click",onCommand:t(r)},{dropdown:e(()=>[n(u,null,{default:e(()=>[(l(!0),C(B,null,x(t(c),(a,w)=>(l(),m(i,{key:w,disabled:t(d)===a.name,command:a.name},{default:e(()=>[s("span",null,b(a.title),1)]),_:2},1032,["disabled","command"]))),128))]),_:1})]),default:e(()=>[s("div",null,[n(p,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[n(_,{size:20},{default:e(()=>[n(t(h))]),_:1})]),_:1})])]),_:1},8,["onCommand"])}}});export{L as _};
+import{h as k}from"./index-a7e4b819.js";import{A as h}from"./element-3594ebb6.js";import{H as g,ah as o,l,O as m,P as e,V as n,m as C,a8 as x,u as t,F as B,p as s,U as b}from"./vue-09136d94.js";const L=g({__name:"index",setup(v){const{themeList:c,activeThemeName:d,setTheme:r}=k();return(N,T)=>{const _=o("el-icon"),p=o("el-tooltip"),i=o("el-dropdown-item"),u=o("el-dropdown-menu"),f=o("el-dropdown");return l(),m(f,{trigger:"click",onCommand:t(r)},{dropdown:e(()=>[n(u,null,{default:e(()=>[(l(!0),C(B,null,x(t(c),(a,w)=>(l(),m(i,{key:w,disabled:t(d)===a.name,command:a.name},{default:e(()=>[s("span",null,b(a.title),1)]),_:2},1032,["disabled","command"]))),128))]),_:1})]),default:e(()=>[s("div",null,[n(p,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[n(_,{size:20},{default:e(()=>[n(t(h))]),_:1})]),_:1})])]),_:1},8,["onCommand"])}}});export{L as _};
diff --git a/static/page-889ce835.js b/static/page-94e5103a.js
similarity index 79%
rename from static/page-889ce835.js
rename to static/page-94e5103a.js
index edeeaa5d..e9d824d0 100644
--- a/static/page-889ce835.js
+++ b/static/page-94e5103a.js
@@ -1 +1 @@
-import{H as s,aE as n,ah as _,l as p,m as r,V as e,P as c,T as i}from"./vue-09136d94.js";import{S as l}from"./SwitchRoles-f62d077d.js";import{_ as m}from"./index-15431bfa.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const d={class:"app-container"},u=s({__name:"page",setup(f){const t=n(),a=()=>{t.push({path:"/403"})};return(g,h)=>{const o=_("el-tag");return p(),r("div",d,[e(l,{onChange:a}),e(o,{type:"warning",size:"large"},{default:c(()=>[i("当前页面只有 admin 权限可见,切换权限后将不能进入该页面")]),_:1})])}}});const R=m(u,[["__scopeId","data-v-7986af66"]]);export{R as default};
+import{H as s,aE as n,ah as _,l as p,m as r,V as e,P as c,T as i}from"./vue-09136d94.js";import{S as l}from"./SwitchRoles-11841495.js";import{_ as m}from"./index-a7e4b819.js";import"./element-3594ebb6.js";import"./vxe-e1f17f9a.js";const d={class:"app-container"},u=s({__name:"page",setup(f){const t=n(),a=()=>{t.push({path:"/403"})};return(g,h)=>{const o=_("el-tag");return p(),r("div",d,[e(l,{onChange:a}),e(o,{type:"warning",size:"large"},{default:c(()=>[i("当前页面只有 admin 权限可见,切换权限后将不能进入该页面")]),_:1})])}}});const R=m(u,[["__scopeId","data-v-7986af66"]]);export{R as default};