V3 Admin Vite
-
+
diff --git a/static/403-CQmILWUP.js b/static/403-COPxJLMo.js
similarity index 99%
rename from static/403-CQmILWUP.js
rename to static/403-COPxJLMo.js
index d4adc304..78bfa891 100644
--- a/static/403-CQmILWUP.js
+++ b/static/403-COPxJLMo.js
@@ -1 +1 @@
-import{E as r}from"./ErrorPageLayout-6WcpeR8b.js";import{q as e,t as s,aJ as l,p as i,M as h,O as n,U as p,u as c}from"./vue-BWN0lbwY.js";import"./index-lhjAkg-7.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default};
+import{E as r}from"./ErrorPageLayout-BzK-MhH1.js";import{q as e,t as s,aJ as l,p as i,M as h,O as n,U as p,u as c}from"./vue-BWN0lbwY.js";import"./index-B_OLftB1.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default};
diff --git a/static/404-BAH3jhh3.js b/static/404-BZUaD_US.js
similarity index 99%
rename from static/404-BAH3jhh3.js
rename to static/404-BZUaD_US.js
index 24221046..28331a52 100644
--- a/static/404-BAH3jhh3.js
+++ b/static/404-BZUaD_US.js
@@ -1 +1 @@
-import{E as c}from"./ErrorPageLayout-6WcpeR8b.js";import{q as l,t as h,aJ as e,p as s,M as p,O as M,U as f,u as i}from"./vue-BWN0lbwY.js";import"./index-lhjAkg-7.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default};
+import{E as c}from"./ErrorPageLayout-BzK-MhH1.js";import{q as l,t as h,aJ as e,p as s,M as p,O as M,U as f,u as i}from"./vue-BWN0lbwY.js";import"./index-B_OLftB1.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default};
diff --git a/static/ErrorPageLayout-6WcpeR8b.js b/static/ErrorPageLayout-BzK-MhH1.js
similarity index 87%
rename from static/ErrorPageLayout-6WcpeR8b.js
rename to static/ErrorPageLayout-BzK-MhH1.js
index c90cbade..ef9f1578 100644
--- a/static/ErrorPageLayout-6WcpeR8b.js
+++ b/static/ErrorPageLayout-BzK-MhH1.js
@@ -1 +1 @@
-import{_}from"./index-lhjAkg-7.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-BWN0lbwY.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E};
+import{_}from"./index-B_OLftB1.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-BWN0lbwY.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E};
diff --git a/static/SwitchRoles-B_14D8wJ.js b/static/SwitchRoles-Bu5yhVPP.js
similarity index 91%
rename from static/SwitchRoles-B_14D8wJ.js
rename to static/SwitchRoles-Bu5yhVPP.js
index 9c10300a..a00a804c 100644
--- a/static/SwitchRoles-B_14D8wJ.js
+++ b/static/SwitchRoles-Bu5yhVPP.js
@@ -1 +1 @@
-import{e as u,_ as c}from"./index-lhjAkg-7.js";import{p as _,r as p,d as m,ai as r,q as v,t as f,v as t,T as w,u as S,U as a,O as b}from"./vue-BWN0lbwY.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+w(S(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:b(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S};
+import{e as u,_ as c}from"./index-B_OLftB1.js";import{p as _,r as p,d as m,ai as r,q as v,t as f,v as t,T as w,u as S,U as a,O as b}from"./vue-BWN0lbwY.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+w(S(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:b(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S};
diff --git a/static/directive-Cw3FC8jv.js b/static/directive-CicEJf-Y.js
similarity index 95%
rename from static/directive-Cw3FC8jv.js
rename to static/directive-CicEJf-Y.js
index 43c8534c..9dfb8022 100644
--- a/static/directive-Cw3FC8jv.js
+++ b/static/directive-CicEJf-Y.js
@@ -1 +1 @@
-import{e as g,_ as b}from"./index-lhjAkg-7.js";import{S as y}from"./SwitchRoles-B_14D8wJ.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default};
+import{e as g,_ as b}from"./index-B_OLftB1.js";import{S as y}from"./SwitchRoles-Bu5yhVPP.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default};
diff --git a/static/index-Dv97s5rO.js b/static/index-BODi2BxH.js
similarity index 92%
rename from static/index-Dv97s5rO.js
rename to static/index-BODi2BxH.js
index a3cb2d33..25996c1a 100644
--- a/static/index-Dv97s5rO.js
+++ b/static/index-BODi2BxH.js
@@ -1 +1 @@
-import{_ as o}from"./index-lhjAkg-7.js";import{q as n,t as a,v as t}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const i={},r={"h-full":"","uno-padding-20":""};function s(c,e){return n(),a("div",r,e[0]||(e[0]=[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:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),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)]))}const p=o(i,[["render",s]]);export{p as default};
+import{_ as o}from"./index-B_OLftB1.js";import{q as n,t as a,v as t}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const i={},r={"h-full":"","uno-padding-20":""};function s(c,e){return n(),a("div",r,e[0]||(e[0]=[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:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),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)]))}const p=o(i,[["render",s]]);export{p as default};
diff --git a/static/index-lhjAkg-7.js b/static/index-B_OLftB1.js
similarity index 97%
rename from static/index-lhjAkg-7.js
rename to static/index-B_OLftB1.js
index 806105cf..fe9fe816 100644
--- a/static/index-lhjAkg-7.js
+++ b/static/index-B_OLftB1.js
@@ -1,5 +1,5 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-Csy9NssY.js","static/vue-BWN0lbwY.js","static/useWatermark-CFXy0vbL.js","static/element-C5mYgMeM.js","static/index.vue_vue_type_script_setup_true_lang-CGuepwMI.js","static/vxe-CtPXIgsa.js","static/index-Dd44OBIm.css","static/index-zxkte_Zk.js","static/403-CQmILWUP.js","static/ErrorPageLayout-6WcpeR8b.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-BAH3jhh3.js","static/index-6Z0bGmt1.js","static/index-BOQekaY2.css","static/index-CzCqoH2W.js","static/index-Dv11vANz.css","static/index-Dv97s5rO.js","static/index-DeU_5Hj6.js","static/index-DSkebEBU.js","static/index-krJKiOLS.css","static/index-B5Im1QMx.js","static/index-NMA_My8s.js","static/index-CDm88bV6.css","static/index-ab9Zq7pQ.js","static/index-BWmsIUk1.js","static/index-Bxrsma17.js","static/index-Bq80v23q.js","static/index-CcjFwFDv.js","static/index-DHm7zfij.js","static/use-fetch-select-DR-WPxlD.js","static/use-fullscreen-loading-BJYNUu-a.js","static/use-watermark-CnmUtAlx.js","static/use-watermark-BtM2la4P.css","static/page-BW2SS80a.js","static/SwitchRoles-B_14D8wJ.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-Cw3FC8jv.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]);
-var qt=Object.defineProperty;var $t=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>$t(e,typeof t!="symbol"?t+"":t,n);import{r as B,w as Ae,ax as Wt,ay as re,d as ut,p as ct,ai as Me,q as lt,M as Jt,O as Gt,U as Kt,u as Xt,az as Yt,aA as Zt,A as Qt,f as en,t as tn,v as nn,at as rn}from"./vue-BWN0lbwY.js";import{E as on,m as sn,b as Z,c as an,e as un,g as cn,i as ln,f as dn}from"./element-C5mYgMeM.js";import{V as Re,a as fn}from"./vxe-CtPXIgsa.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 j="v3-admin-vite";class R{}I(R,"TOKEN",`${j}-token-key`),I(R,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(R,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(R,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(R,"VISITED_VIEWS",`${j}-visited-views-key`),I(R,"CACHED_VIEWS",`${j}-cached-views-key`);const mn=()=>{const e=localStorage.getItem(R.CONFIG_LAYOUT);return e?JSON.parse(e):null},pn=e=>{localStorage.setItem(R.CONFIG_LAYOUT,JSON.stringify(e))},Zo=()=>{localStorage.removeItem(R.CONFIG_LAYOUT)},Qo=()=>localStorage.getItem(R.SIDEBAR_STATUS),es=e=>{localStorage.setItem(R.SIDEBAR_STATUS,e)},hn=()=>localStorage.getItem(R.ACTIVE_THEME_NAME),En=e=>{localStorage.setItem(R.ACTIVE_THEME_NAME,e)},gn=()=>{const e=localStorage.getItem(R.VISITED_VIEWS);return JSON.parse(e??"[]")},yn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(R.VISITED_VIEWS,JSON.stringify(e))},wn=()=>{const e=localStorage.getItem(R.CACHED_VIEWS);return JSON.parse(e??"[]")},bn=e=>{localStorage.setItem(R.CACHED_VIEWS,JSON.stringify(e))},dt="normal",ft=[{title:"默认",name:dt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ce=B(hn()||dt),Sn=e=>{Ce.value=e},vn=e=>{document.documentElement.classList.add(e)},_n=e=>{const t=ft.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)},Tn=()=>{Ae(()=>{const e=Ce.value;_n(e),vn(e),En(e)})};function An(){return{themeList:ft,activeThemeName:Ce,initTheme:Tn,setTheme:Sn}}const Oe=Wt();var Rn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Rn||{}),mt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(mt||{});const ts="opened",ns="closed",Cn={layoutMode:mt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},On={...Cn,...mn()},Fe=re("settings",()=>{const e={};for(const[n,r]of Object.entries(On)){const o=B(r);e[n]=o,ut(o,()=>{const s=t();pn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),Fn="grey-mode",xn="color-weakness",He=document.documentElement.classList,Dn=()=>{const e=Fe();Ae(()=>{He.toggle(Fn,e.showGreyMode),He.toggle(xn,e.showColorWeakness)})};function kn(){return{initGreyAndColorWeakness:Dn}}var Pn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",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:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const Bn=ct({__name:"App",setup(e){const{initTheme:t}=An(),{initGreyAndColorWeakness:n}=kn();return t(),n(),on({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(r,o)=>{const s=Me("router-view"),i=Me("el-config-provider");return lt(),Jt(i,{locale:Xt(Pn)},{default:Gt(()=>[Kt(s)]),_:1},8,["locale"])}}}),Ln="modulepreload",Nn=function(e){return"/v3-admin-vite/"+e},je={},T=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=Nn(h),h in je)return;je[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Ln,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},In=Yt("/v3-admin-vite/"),pt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-Csy9NssY.js"),__vite__mapDeps([0,1,2,3,4,5,6])),ht=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-zxkte_Zk.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-CQmILWUP.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-BAH3jhh3.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-6Z0bGmt1.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-CzCqoH2W.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-Dv97s5rO.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-DeU_5Hj6.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-B5Im1QMx.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-NMA_My8s.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-ab9Zq7pQ.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-BWmsIUk1.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-Bxrsma17.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-Bq80v23q.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-CcjFwFDv.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-DHm7zfij.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-DR-WPxlD.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-BJYNUu-a.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-CnmUtAlx.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],ze=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-BW2SS80a.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-Cw3FC8jv.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=Zt({history:In,routes:ht});function Vn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}const Un=re("tags-view",()=>{const{cacheTagsView:e}=Fe(),t=B(e?gn():[]),n=B(e?wn():[]);return Ae(()=>{yn(t.value),bn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var w;return((w=E.meta)==null?void 0:w.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function X(e){for(var t=1;t"u")){i=X({},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 c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cxe.get(R.TOKEN),qe=e=>{xe.set(R.TOKEN,e)},$e=()=>{xe.remove(R.TOKEN)};function Et(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hn}=Object.prototype,{getPrototypeOf:ke}=Object,oe=(e=>t=>{const n=Hn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:z}=Array,W=se("undefined");function jn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gt=P("ArrayBuffer");function zn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&>(e.buffer),t}const qn=se("string"),D=se("function"),yt=se("number"),ie=e=>e!==null&&typeof e=="object",$n=e=>e===!0||e===!1,Q=e=>{if(oe(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wn=P("Date"),Jn=P("File"),Gn=P("Blob"),Kn=P("FileList"),Xn=e=>ie(e)&&D(e.pipe),Yn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||D(e.append)&&((t=oe(e))==="formdata"||t==="object"&&D(e.toString)&&e.toString()==="[object FormData]"))},Zn=P("URLSearchParams"),[Qn,er,tr,nr]=["ReadableStream","Request","Response","Headers"].map(P),rr=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]),z(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bt=e=>!W(e)&&e!==U;function he(){const{caseless:e}=bt(this)&&this||{},t={},n=(r,o)=>{const s=e&&wt(t,o)||o;Q(t[s])&&Q(r)?t[s]=he(t[s],r):Q(r)?t[s]=he({},r):z(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&D(o)?e[s]=Et(o,n):e[s]=o},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ir=(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)},ar=(e,t,n,r)=>{let o,s,i;const c={};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))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ke(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ur=(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},cr=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!yt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),dr=(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])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mr=P("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),We=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=P("RegExp"),St=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Er=e=>{St(e,(t,n)=>{if(D(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(D(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+"'")})}})},gr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return z(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ce="abcdefghijklmnopqrstuvwxyz",Je="0123456789",vt={DIGIT:Je,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Je},br=(e=16,t=vt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sr(e){return!!(e&&D(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=z(r)?[]:{};return J(r,(i,c)=>{const h=n(i,o+1);!W(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},_r=P("AsyncFunction"),Tr=e=>e&&(ie(e)||D(e))&&D(e.then)&&D(e.catch),_t=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",D(U.postMessage)),Ar=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||_t,a={isArray:z,isArrayBuffer:gt,isBuffer:jn,isFormData:Yn,isArrayBufferView:zn,isString:qn,isNumber:yt,isBoolean:$n,isObject:ie,isPlainObject:Q,isReadableStream:Qn,isRequest:er,isResponse:tr,isHeaders:nr,isUndefined:W,isDate:Wn,isFile:Jn,isBlob:Gn,isRegExp:hr,isFunction:D,isStream:Xn,isURLSearchParams:Zn,isTypedArray:lr,isFileList:Kn,forEach:J,merge:he,extend:or,trim:rr,stripBOM:sr,inherits:ir,toFlatObject:ar,kindOf:oe,kindOfTest:P,endsWith:ur,toArray:cr,forEachEntry:dr,matchAll:fr,isHTMLForm:mr,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:St,freezeMethods:Er,toObjectSet:gr,toCamelCase:pr,noop:yr,toFiniteNumber:wr,findKey:wt,global:U,isContextDefined:bt,ALPHABET:vt,generateString:br,isSpecCompliantForm:Sr,toJSONObject:vr,isAsyncFn:_r,isThenable:Tr,setImmediate:_t,asap:Ar};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,this.status=o.status?o.status:null)}a.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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Tt=g.prototype,At={};["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=>{At[e]={value:e}});Object.defineProperties(g,At);Object.defineProperty(Tt,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(Tt);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rr=null;function Ee(e){return a.isPlainObject(e)||a.isArray(e)}function Rt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,n){return e?e.concat(t).map(function(o,s){return o=Rt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Cr(e){return a.isArray(e)&&!e.some(Ee)}const Or=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!h&&a.isBlob(u))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Cr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=Rt(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?Ge([f],S,s):i===null?f:f+"[]",d(v))}),!1}return Ee(u)?!0:(t.append(Ge(m,f,s),d(u)),!1)}const l=[],E=Object.assign(Or,{defaultVisitor:p,convertValue:d,isVisitable:Ee});function w(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(b)?b.trim():b,f,E))===!0&&w(y,f?f.concat(b):[b])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pe(e,t){this._pairs=[],e&&ae(e,this,t)}const Ct=Pe.prototype;Ct.append=function(t,n){this._pairs.push([t,n])};Ct.toString=function(t){const n=t?function(r){return t.call(this,r,Ke)}:Ke;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ot(e,t,n){if(!t)return e;const r=n&&n.encode||Fr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Xe{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){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xr=typeof URLSearchParams<"u"?URLSearchParams:Pe,Dr=typeof FormData<"u"?FormData:null,kr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:xr,FormData:Dr,Blob:kr},protocols:["http","https","file","blob","url","data"]},Be=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,Br=Be&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nr=Be&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Be,hasStandardBrowserEnv:Br,hasStandardBrowserWebWorkerEnv:Lr,navigator:ge,origin:Nr},Symbol.toStringTag,{value:"Module"})),F={...Ir,...Pr};function Vr(e,t){return ae(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ur(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Mr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ur(r),o,n,0)}),n}return null}function Hr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:Ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(xt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Hr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const jr=a.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"]),zr=e=>{const t={};let n,r,o;return e&&e.split(`
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-Cib8VatE.js","static/vue-BWN0lbwY.js","static/useWatermark-CFXy0vbL.js","static/element-C5mYgMeM.js","static/index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js","static/vxe-CtPXIgsa.js","static/index-CwQ7_t66.css","static/index-zxkte_Zk.js","static/403-COPxJLMo.js","static/ErrorPageLayout-BzK-MhH1.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-BZUaD_US.js","static/index-CDO_SB_r.js","static/index-BOQekaY2.css","static/index-DPcx_Uvi.js","static/index-Dv11vANz.css","static/index-BODi2BxH.js","static/index-CqFYS1wj.js","static/index-DBUZIcJ7.js","static/index-krJKiOLS.css","static/index-DaS3DRlm.js","static/index-Bk-ig1fv.js","static/index-CDm88bV6.css","static/index-ab9Zq7pQ.js","static/index-DTnylfwR.js","static/index-Bxrsma17.js","static/index-Bq80v23q.js","static/index-CcjFwFDv.js","static/index-DHm7zfij.js","static/use-fetch-select-DR-WPxlD.js","static/use-fullscreen-loading-BJYNUu-a.js","static/use-watermark-BH-K4jq-.js","static/use-watermark-BtM2la4P.css","static/page-C9G8YCb_.js","static/SwitchRoles-Bu5yhVPP.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-CicEJf-Y.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]);
+var qt=Object.defineProperty;var $t=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>$t(e,typeof t!="symbol"?t+"":t,n);import{r as B,w as Ae,ax as Wt,ay as re,d as ut,p as ct,ai as Me,q as lt,M as Jt,O as Gt,U as Kt,u as Xt,az as Yt,aA as Zt,A as Qt,f as en,t as tn,v as nn,at as rn}from"./vue-BWN0lbwY.js";import{E as on,m as sn,b as Z,c as an,e as un,g as cn,i as ln,f as dn}from"./element-C5mYgMeM.js";import{V as Re,a as fn}from"./vxe-CtPXIgsa.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 j="v3-admin-vite";class R{}I(R,"TOKEN",`${j}-token-key`),I(R,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(R,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(R,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(R,"VISITED_VIEWS",`${j}-visited-views-key`),I(R,"CACHED_VIEWS",`${j}-cached-views-key`);const mn=()=>{const e=localStorage.getItem(R.CONFIG_LAYOUT);return e?JSON.parse(e):null},pn=e=>{localStorage.setItem(R.CONFIG_LAYOUT,JSON.stringify(e))},Zo=()=>{localStorage.removeItem(R.CONFIG_LAYOUT)},Qo=()=>localStorage.getItem(R.SIDEBAR_STATUS),es=e=>{localStorage.setItem(R.SIDEBAR_STATUS,e)},hn=()=>localStorage.getItem(R.ACTIVE_THEME_NAME),En=e=>{localStorage.setItem(R.ACTIVE_THEME_NAME,e)},gn=()=>{const e=localStorage.getItem(R.VISITED_VIEWS);return JSON.parse(e??"[]")},yn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(R.VISITED_VIEWS,JSON.stringify(e))},wn=()=>{const e=localStorage.getItem(R.CACHED_VIEWS);return JSON.parse(e??"[]")},bn=e=>{localStorage.setItem(R.CACHED_VIEWS,JSON.stringify(e))},dt="normal",ft=[{title:"默认",name:dt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ce=B(hn()||dt),Sn=e=>{Ce.value=e},vn=e=>{document.documentElement.classList.add(e)},_n=e=>{const t=ft.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)},Tn=()=>{Ae(()=>{const e=Ce.value;_n(e),vn(e),En(e)})};function An(){return{themeList:ft,activeThemeName:Ce,initTheme:Tn,setTheme:Sn}}const Oe=Wt();var Rn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Rn||{}),mt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(mt||{});const ts="opened",ns="closed",Cn={layoutMode:mt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},On={...Cn,...mn()},Fe=re("settings",()=>{const e={};for(const[n,r]of Object.entries(On)){const o=B(r);e[n]=o,ut(o,()=>{const s=t();pn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),Fn="grey-mode",xn="color-weakness",He=document.documentElement.classList,Dn=()=>{const e=Fe();Ae(()=>{He.toggle(Fn,e.showGreyMode),He.toggle(xn,e.showColorWeakness)})};function kn(){return{initGreyAndColorWeakness:Dn}}var Pn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",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:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const Bn=ct({__name:"App",setup(e){const{initTheme:t}=An(),{initGreyAndColorWeakness:n}=kn();return t(),n(),on({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(r,o)=>{const s=Me("router-view"),i=Me("el-config-provider");return lt(),Jt(i,{locale:Xt(Pn)},{default:Gt(()=>[Kt(s)]),_:1},8,["locale"])}}}),Ln="modulepreload",Nn=function(e){return"/v3-admin-vite/"+e},je={},T=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=Nn(h),h in je)return;je[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Ln,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},In=Yt("/v3-admin-vite/"),pt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-Cib8VatE.js"),__vite__mapDeps([0,1,2,3,4,5,6])),ht=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-zxkte_Zk.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-COPxJLMo.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-BZUaD_US.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-CDO_SB_r.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-DPcx_Uvi.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-BODi2BxH.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-CqFYS1wj.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-DaS3DRlm.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-Bk-ig1fv.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-ab9Zq7pQ.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-DTnylfwR.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-Bxrsma17.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-Bq80v23q.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-CcjFwFDv.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-DHm7zfij.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-DR-WPxlD.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-BJYNUu-a.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-BH-K4jq-.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],ze=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-C9G8YCb_.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-CicEJf-Y.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=Zt({history:In,routes:ht});function Vn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}const Un=re("tags-view",()=>{const{cacheTagsView:e}=Fe(),t=B(e?gn():[]),n=B(e?wn():[]);return Ae(()=>{yn(t.value),bn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var w;return((w=E.meta)==null?void 0:w.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function X(e){for(var t=1;t"u")){i=X({},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 c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cxe.get(R.TOKEN),qe=e=>{xe.set(R.TOKEN,e)},$e=()=>{xe.remove(R.TOKEN)};function Et(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hn}=Object.prototype,{getPrototypeOf:ke}=Object,oe=(e=>t=>{const n=Hn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:z}=Array,W=se("undefined");function jn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gt=P("ArrayBuffer");function zn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&>(e.buffer),t}const qn=se("string"),D=se("function"),yt=se("number"),ie=e=>e!==null&&typeof e=="object",$n=e=>e===!0||e===!1,Q=e=>{if(oe(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wn=P("Date"),Jn=P("File"),Gn=P("Blob"),Kn=P("FileList"),Xn=e=>ie(e)&&D(e.pipe),Yn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||D(e.append)&&((t=oe(e))==="formdata"||t==="object"&&D(e.toString)&&e.toString()==="[object FormData]"))},Zn=P("URLSearchParams"),[Qn,er,tr,nr]=["ReadableStream","Request","Response","Headers"].map(P),rr=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]),z(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bt=e=>!W(e)&&e!==U;function he(){const{caseless:e}=bt(this)&&this||{},t={},n=(r,o)=>{const s=e&&wt(t,o)||o;Q(t[s])&&Q(r)?t[s]=he(t[s],r):Q(r)?t[s]=he({},r):z(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&D(o)?e[s]=Et(o,n):e[s]=o},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ir=(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)},ar=(e,t,n,r)=>{let o,s,i;const c={};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))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ke(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ur=(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},cr=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!yt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),dr=(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])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mr=P("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),We=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=P("RegExp"),St=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Er=e=>{St(e,(t,n)=>{if(D(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(D(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+"'")})}})},gr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return z(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ce="abcdefghijklmnopqrstuvwxyz",Je="0123456789",vt={DIGIT:Je,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Je},br=(e=16,t=vt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sr(e){return!!(e&&D(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=z(r)?[]:{};return J(r,(i,c)=>{const h=n(i,o+1);!W(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},_r=P("AsyncFunction"),Tr=e=>e&&(ie(e)||D(e))&&D(e.then)&&D(e.catch),_t=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",D(U.postMessage)),Ar=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||_t,a={isArray:z,isArrayBuffer:gt,isBuffer:jn,isFormData:Yn,isArrayBufferView:zn,isString:qn,isNumber:yt,isBoolean:$n,isObject:ie,isPlainObject:Q,isReadableStream:Qn,isRequest:er,isResponse:tr,isHeaders:nr,isUndefined:W,isDate:Wn,isFile:Jn,isBlob:Gn,isRegExp:hr,isFunction:D,isStream:Xn,isURLSearchParams:Zn,isTypedArray:lr,isFileList:Kn,forEach:J,merge:he,extend:or,trim:rr,stripBOM:sr,inherits:ir,toFlatObject:ar,kindOf:oe,kindOfTest:P,endsWith:ur,toArray:cr,forEachEntry:dr,matchAll:fr,isHTMLForm:mr,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:St,freezeMethods:Er,toObjectSet:gr,toCamelCase:pr,noop:yr,toFiniteNumber:wr,findKey:wt,global:U,isContextDefined:bt,ALPHABET:vt,generateString:br,isSpecCompliantForm:Sr,toJSONObject:vr,isAsyncFn:_r,isThenable:Tr,setImmediate:_t,asap:Ar};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,this.status=o.status?o.status:null)}a.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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Tt=g.prototype,At={};["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=>{At[e]={value:e}});Object.defineProperties(g,At);Object.defineProperty(Tt,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(Tt);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rr=null;function Ee(e){return a.isPlainObject(e)||a.isArray(e)}function Rt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,n){return e?e.concat(t).map(function(o,s){return o=Rt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Cr(e){return a.isArray(e)&&!e.some(Ee)}const Or=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!h&&a.isBlob(u))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Cr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=Rt(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?Ge([f],S,s):i===null?f:f+"[]",d(v))}),!1}return Ee(u)?!0:(t.append(Ge(m,f,s),d(u)),!1)}const l=[],E=Object.assign(Or,{defaultVisitor:p,convertValue:d,isVisitable:Ee});function w(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(b)?b.trim():b,f,E))===!0&&w(y,f?f.concat(b):[b])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pe(e,t){this._pairs=[],e&&ae(e,this,t)}const Ct=Pe.prototype;Ct.append=function(t,n){this._pairs.push([t,n])};Ct.toString=function(t){const n=t?function(r){return t.call(this,r,Ke)}:Ke;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ot(e,t,n){if(!t)return e;const r=n&&n.encode||Fr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Xe{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){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xr=typeof URLSearchParams<"u"?URLSearchParams:Pe,Dr=typeof FormData<"u"?FormData:null,kr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:xr,FormData:Dr,Blob:kr},protocols:["http","https","file","blob","url","data"]},Be=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,Br=Be&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nr=Be&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Be,hasStandardBrowserEnv:Br,hasStandardBrowserWebWorkerEnv:Lr,navigator:ge,origin:Nr},Symbol.toStringTag,{value:"Module"})),F={...Ir,...Pr};function Vr(e,t){return ae(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ur(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Mr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ur(r),o,n,0)}),n}return null}function Hr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:Ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(xt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Hr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const jr=a.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"]),zr=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]&&jr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ye=Symbol("internals");function $(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function qr(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 $r=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Wr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jr(e,t){const n=a.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})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,h,d){const p=$(h);if(!p)throw new Error("header name must be a non-empty string");const l=a.findKey(o,p);(!l||o[l]===void 0||d===!0||d===void 0&&o[l]!==!1)&&(o[l||h]=ee(c))}const i=(c,h)=>a.forEach(c,(d,p)=>s(d,p,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!$r(t))i(zr(t),n);else if(a.isHeaders(t))for(const[c,h]of t.entries())s(h,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=$(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return qr(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$(t),t){const r=a.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=$(i),i){const c=a.findKey(r,i);c&&(!n||le(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.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 a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=ee(o),delete n[s];return}const c=t?Wr(s):String(s).trim();c!==s&&delete n[s],n[c]=ee(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.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[Ye]=this[Ye]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=$(i);r[c]||(Jr(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function de(e,t){const n=this||G,r=t||n,o=x.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Dt(e){return!!(e&&e.__CANCEL__)}function q(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(q,g,{__CANCEL__:!0});function kt(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))}function Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(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(h){const d=Date.now(),p=r[s];i||(i=d),n[o]=h,r[o]=d;let l=s,E=0;for(;l!==o;)E+=n[l++],l=l%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),l=p-n;l>=r?i(d,p):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-l)))},()=>o&&i(o)]}const te=(e,t,n=3)=>{let r=0;const o=Kr(50,250);return Xr(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,h=i-r,d=o(h),p=i<=c;r=i;const l={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:d||void 0,estimated:d&&c&&p?(c-i)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(l)},n)},Ze=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>a.asap(()=>e(...t)),Yr=F.hasStandardBrowserEnv?function(){const t=F.navigator&&/(msie|trident)/i.test(F.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 c=a.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),Zr=F.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t){return e&&!Qr(t)?eo(e,t):t}const et=e=>e instanceof x?{...e}:e;function H(e,t){t=t||{};const n={};function r(d,p,l){return a.isPlainObject(d)&&a.isPlainObject(p)?a.merge.call({caseless:l},d,p):a.isPlainObject(p)?a.merge({},p):a.isArray(p)?p.slice():p}function o(d,p,l){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d,l)}else return r(d,p,l)}function s(d,p){if(!a.isUndefined(p))return r(void 0,p)}function i(d,p){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,l){if(l in t)return r(d,p);if(l in e)return r(void 0,d)}const h={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken: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:c,headers:(d,p)=>o(et(d),et(p),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(p){const l=h[p]||o,E=l(e[p],t[p],p);a.isUndefined(E)&&l!==c||(n[p]=E)}),n}const Bt=e=>{const t=H({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=Ot(Pt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(a.isFormData(n)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[d,...p]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...p].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Yr(t.url))){const d=o&&s&&Zr.read(s);d&&i.set(o,d)}return t},to=typeof XMLHttpRequest<"u",no=to&&function(e){return new Promise(function(n,r){const o=Bt(e);let s=o.data;const i=x.from(o.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:d}=o,p,l,E,w,u;function f(){w&&w(),u&&u(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const v=x.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:e,request:m};kt(function(O){n(O),f()},function(O){r(O),f()},_),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new g("Request aborted",g.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Ft;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new g(S,_.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,m)),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(S,_){m.setRequestHeader(_,S)}),a.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),c&&c!=="json"&&(m.responseType=o.responseType),d&&([E,u]=te(d,!0),m.addEventListener("progress",E)),h&&m.upload&&([l,w]=te(h),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=v=>{m&&(r(!v||v.type?new q(null,e,m):v),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const b=Gr(o.url);if(b&&F.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}m.send(s||null)})},ro=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof g?p:new q(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=r;return h.unsubscribe=()=>a.asap(c),h}},oo=function*(e,t){let n=e.byteLength;if(n{const o=so(e,t);let s=0,i,c=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:p}=await o.next();if(d){c(),h.close();return}let l=p.byteLength;if(n){let E=s+=l;n(E)}h.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(h){return c(h),o.return()}},{highWaterMark:2})},ue=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lt=ue&&typeof ReadableStream=="function",ao=ue&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Nt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uo=Lt&&Nt(()=>{let e=!1;const t=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),nt=64*1024,ye=Lt&&Nt(()=>a.isReadableStream(new Response("").body)),ne={stream:ye&&(e=>e.body)};ue&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ne[t]&&(ne[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new g(`Response type '${t}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const co=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(F.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await ao(e)).byteLength},lo=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??co(t)},fo=ue&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:d,headers:p,withCredentials:l="same-origin",fetchOptions:E}=Bt(e);d=d?(d+"").toLowerCase():"text";let w=ro([o,s&&s.toAbortSignal()],i),u;const f=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let m;try{if(h&&uo&&n!=="get"&&n!=="head"&&(m=await lo(p,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(a.isFormData(r)&&(C=_.headers.get("content-type"))&&p.setContentType(C),_.body){const[O,k]=Ze(m,te(Qe(h)));r=tt(_.body,nt,O,k)}}a.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;u=new Request(t,{...E,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let b=await fetch(u);const v=ye&&(d==="stream"||d==="response");if(ye&&(c||v&&f)){const _={};["status","statusText","headers"].forEach(Ue=>{_[Ue]=b[Ue]});const C=a.toFiniteNumber(b.headers.get("content-length")),[O,k]=c&&Ze(C,te(Qe(c),!0))||[];b=new Response(tt(b.body,nt,O,()=>{k&&k(),f&&f()}),_)}d=d||"text";let S=await ne[a.findKey(ne,d)||"text"](b,e);return!v&&f&&f(),await new Promise((_,C)=>{kt(_,C,{data:S,headers:x.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:u})})}catch(y){throw f&&f(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,u),{cause:y.cause||y}):g.from(y,y&&y.code,e,u)}}),we={http:Rr,xhr:no,fetch:fo};a.forEach(we,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rt=e=>`- ${e}`,mo=e=>a.isFunction(e)||e===null||e===!1,It={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
`+s.map(rt).join(`
diff --git a/static/index-NMA_My8s.js b/static/index-Bk-ig1fv.js
similarity index 91%
rename from static/index-NMA_My8s.js
rename to static/index-Bk-ig1fv.js
index ad38542a..5c3dfaa0 100644
--- a/static/index-NMA_My8s.js
+++ b/static/index-Bk-ig1fv.js
@@ -1 +1 @@
-import{_ as i}from"./index-lhjAkg-7.js";import{ai as t,q as _,t as l,v as p,S as n,U as o,O as r}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const d={},m={class:"app-container"};function u(f,e){const a=t("el-link"),s=t("router-view"),c=t("el-card");return _(),l("div",m,[p("h4",null,[e[1]||(e[1]=n(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ")),o(a,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[n(" src/config/route.ts ")])),_:1})]),o(c,{header:"二级路由 - menu1"},{default:r(()=>[o(s)]),_:1})])}const g=i(d,[["render",u],["__scopeId","data-v-6b5ec9cb"]]);export{g as default};
+import{_ as i}from"./index-B_OLftB1.js";import{ai as t,q as _,t as l,v as p,S as n,U as o,O as r}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const d={},m={class:"app-container"};function u(f,e){const a=t("el-link"),s=t("router-view"),c=t("el-card");return _(),l("div",m,[p("h4",null,[e[1]||(e[1]=n(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ")),o(a,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[n(" src/config/route.ts ")])),_:1})]),o(c,{header:"二级路由 - menu1"},{default:r(()=>[o(s)]),_:1})])}const g=i(d,[["render",u],["__scopeId","data-v-6b5ec9cb"]]);export{g as default};
diff --git a/static/index-6Z0bGmt1.js b/static/index-CDO_SB_r.js
similarity index 94%
rename from static/index-6Z0bGmt1.js
rename to static/index-CDO_SB_r.js
index 502e34c8..0c7cb9e1 100644
--- a/static/index-6Z0bGmt1.js
+++ b/static/index-CDO_SB_r.js
@@ -1 +1 @@
-import{p as V,q as F,t as b,aJ as q,J as M,r as m,aD as N,Z as E,ai as r,U as e,u as t,v as p,O as a,a2 as J,S as O,a8 as S}from"./vue-BWN0lbwY.js";import{_ as B,f as D,e as I}from"./index-lhjAkg-7.js";import{v as K,w as L,x as $,y as A,z as T}from"./element-C5mYgMeM.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-CGuepwMI.js";import"./vxe-CtPXIgsa.js";const j="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",G=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(l){const u=l;return(f,c)=>(F(),b("div",{class:M(["owl",{"owl-password":u.closeEyes}])},c[0]||(c[0]=[q('',5)]),2))}}),H=B(G,[["__scopeId","data-v-957a4d98"]]);function P(){const l=m(!1);return{isFocus:l,handleBlur:()=>{l.value=!1},handleFocus:()=>{l.value=!0}}}const Q={class:"login-container"},W={class:"login-card"},X={class:"content"},Y=V({__name:"index",setup(l){const u=N(),{isFocus:f,handleBlur:c,handleFocus:C}=P(),h=m(null),_=m(!1),g=m(""),s=E({username:"admin",password:"12345678",code:""}),k={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"}]},w=()=>{var n;(n=h.value)==null||n.validate((o,d)=>{o?(_.value=!0,I().login(s).then(()=>{u.push({path:"/"})}).catch(()=>{v(),s.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},v=()=>{s.code="",g.value="",D().then(n=>{g.value=n.data})};return v(),(n,o)=>{const d=r("el-input"),x=r("el-form-item"),y=r("el-icon"),z=r("el-image"),U=r("el-button"),R=r("el-form");return F(),b("div",Q,[e(Z,{class:"theme-switch"}),e(H,{"close-eyes":t(f)},null,8,["close-eyes"]),p("div",W,[o[4]||(o[4]=p("div",{class:"title"},[p("img",{src:j})],-1)),p("div",X,[e(R,{ref_key:"loginFormRef",ref:h,model:s,rules:k,onKeyup:S(w,["enter"])},{default:a(()=>[e(x,{prop:"username"},{default:a(()=>[e(d,{modelValue:s.username,"onUpdate:modelValue":o[0]||(o[0]=i=>s.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":t(K),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(x,{prop:"password"},{default:a(()=>[e(d,{modelValue:s.password,"onUpdate:modelValue":o[1]||(o[1]=i=>s.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":t(L),size:"large","show-password":"",onBlur:t(c),onFocus:t(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(x,{prop:"code"},{default:a(()=>[e(d,{modelValue:s.code,"onUpdate:modelValue":o[2]||(o[2]=i=>s.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":t($),maxlength:"7",size:"large"},{append:a(()=>[e(z,{src:g.value,onClick:v,draggable:"false"},{placeholder:a(()=>[e(y,null,{default:a(()=>[e(t(T))]),_:1})]),error:a(()=>[e(y,null,{default:a(()=>[e(t(A))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(U,{loading:_.value,type:"primary",size:"large",onClick:J(w,["prevent"])},{default:a(()=>o[3]||(o[3]=[O("登 录")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),le=B(Y,[["__scopeId","data-v-c8304cc7"]]);export{le as default};
+import{p as V,q as F,t as b,aJ as q,J as M,r as m,aD as N,Z as E,ai as r,U as e,u as t,v as p,O as a,a2 as J,S as O,a8 as S}from"./vue-BWN0lbwY.js";import{_ as B,f as D,e as I}from"./index-B_OLftB1.js";import{v as K,w as L,x as $,y as A,z as T}from"./element-C5mYgMeM.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js";import"./vxe-CtPXIgsa.js";const j="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",G=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(l){const u=l;return(f,c)=>(F(),b("div",{class:M(["owl",{"owl-password":u.closeEyes}])},c[0]||(c[0]=[q('',5)]),2))}}),H=B(G,[["__scopeId","data-v-957a4d98"]]);function P(){const l=m(!1);return{isFocus:l,handleBlur:()=>{l.value=!1},handleFocus:()=>{l.value=!0}}}const Q={class:"login-container"},W={class:"login-card"},X={class:"content"},Y=V({__name:"index",setup(l){const u=N(),{isFocus:f,handleBlur:c,handleFocus:C}=P(),h=m(null),_=m(!1),g=m(""),s=E({username:"admin",password:"12345678",code:""}),k={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"}]},w=()=>{var n;(n=h.value)==null||n.validate((o,d)=>{o?(_.value=!0,I().login(s).then(()=>{u.push({path:"/"})}).catch(()=>{v(),s.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},v=()=>{s.code="",g.value="",D().then(n=>{g.value=n.data})};return v(),(n,o)=>{const d=r("el-input"),x=r("el-form-item"),y=r("el-icon"),z=r("el-image"),U=r("el-button"),R=r("el-form");return F(),b("div",Q,[e(Z,{class:"theme-switch"}),e(H,{"close-eyes":t(f)},null,8,["close-eyes"]),p("div",W,[o[4]||(o[4]=p("div",{class:"title"},[p("img",{src:j})],-1)),p("div",X,[e(R,{ref_key:"loginFormRef",ref:h,model:s,rules:k,onKeyup:S(w,["enter"])},{default:a(()=>[e(x,{prop:"username"},{default:a(()=>[e(d,{modelValue:s.username,"onUpdate:modelValue":o[0]||(o[0]=i=>s.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":t(K),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(x,{prop:"password"},{default:a(()=>[e(d,{modelValue:s.password,"onUpdate:modelValue":o[1]||(o[1]=i=>s.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":t(L),size:"large","show-password":"",onBlur:t(c),onFocus:t(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(x,{prop:"code"},{default:a(()=>[e(d,{modelValue:s.code,"onUpdate:modelValue":o[2]||(o[2]=i=>s.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":t($),maxlength:"7",size:"large"},{append:a(()=>[e(z,{src:g.value,onClick:v,draggable:"false"},{placeholder:a(()=>[e(y,null,{default:a(()=>[e(t(T))]),_:1})]),error:a(()=>[e(y,null,{default:a(()=>[e(t(A))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(U,{loading:_.value,type:"primary",size:"large",onClick:J(w,["prevent"])},{default:a(()=>o[3]||(o[3]=[O("登 录")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),le=B(Y,[["__scopeId","data-v-c8304cc7"]]);export{le as default};
diff --git a/static/index-Cib8VatE.js b/static/index-Cib8VatE.js
new file mode 100644
index 00000000..5936f9c4
--- /dev/null
+++ b/static/index-Cib8VatE.js
@@ -0,0 +1 @@
+import{ay as lt,Z as rt,r as D,d as Oe,E as qe,c as He,A as je,f as L,p as A,q as i,t as C,T as N,u as f,ai as g,v as k,U as u,O as _,W as Xe,M as b,aB as ct,Q as ue,R as I,aC as ve,aD as he,F as H,aa as Y,a2 as re,H as de,a9 as it,S as K,J as q,aE as Ke,w as fe,aF as Ge,b as ut,I as Je,aG as dt,s as ft,a8 as le,aH as oe,n as pt,aI as mt,P as ge,V as ye}from"./vue-BWN0lbwY.js";import{g as _t,S as Ye,D as Q,s as De,a as vt,u as be,b as G,L as te,_ as P,c as Ze,d as Ce,e as ht,r as gt}from"./index-B_OLftB1.js";import{u as yt}from"./useWatermark-CFXy0vbL.js";import{h as bt,j as wt,g as kt,k as St,b as pe,l as xt,n as Ct,o as Qe,u as $t,r as Tt,p as Et,q as Vt,s as Mt,t as Lt}from"./element-C5mYgMeM.js";import{_ as It}from"./index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js";import"./vxe-CtPXIgsa.js";function At(n){n?De(vt):De(Ye)}const se=lt("app",()=>{const n=rt({opened:_t()!==Ye,withoutAnimation:!1}),e=D(Q.Desktop);return Oe(()=>n.opened,a=>At(a)),{device:e,sidebar:n,toggleSidebar:a=>{n.opened=!n.opened,n.withoutAnimation=a},closeSidebar:a=>{n.opened=!1,n.withoutAnimation=a},toggleDevice:a=>{e.value=a}}}),Rt=992,Dt=()=>{const n=se(),{listenerRouteChange:e}=be(),t=()=>document.body.getBoundingClientRect().width-1