From f81b3c71a4c282e9a813e4c1adac21e1553722c6 Mon Sep 17 00:00:00 2001
From: pany-ang <939630029@qq.com>
Date: Wed, 18 Oct 2023 06:44:16 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20a91b8?=
=?UTF-8?q?848a97753a75018312211aafc345ca3edf4=20=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 2 +-
static/{403-b6bf8cb7.js => 403-75144aa1.js} | 2 +-
static/{404-863e7306.js => 404-de00dcf7.js} | 2 +-
...{ErrorPageLayout-8748c1a0.js => ErrorPageLayout-f5860d11.js} | 2 +-
static/{SwitchRoles-8e961b35.js => SwitchRoles-79b8f853.js} | 2 +-
static/{directive-9201e298.js => directive-a26b3ef2.js} | 2 +-
static/{index-97081a64.js => index-0668ea34.js} | 2 +-
static/{index-1d04113f.js => index-0adafffd.js} | 2 +-
static/{index-f3884341.js => index-2e851991.js} | 2 +-
static/{index-5ec44631.js => index-4fd067ab.js} | 2 +-
static/index-72807629.css | 1 +
static/{index-9f030b02.js => index-7710d4af.js} | 2 +-
static/{index-c50109df.js => index-97ede5c8.js} | 2 +-
static/{index-e706c545.js => index-d31a53fe.js} | 2 +-
static/index-d4ce1ec1.js | 1 +
static/{index-60500aa4.js => index-e5ab5012.js} | 2 +-
static/index-eb20fbc5.js | 1 -
static/{index-f792e480.js => index-ef31847c.js} | 2 +-
...js => index.vue_vue_type_script_setup_true_lang-c3802ea4.js} | 2 +-
static/{page-651fd229.js => page-8fc8749b.js} | 2 +-
static/{use-watermark-30de520f.js => use-watermark-2b515d02.js} | 2 +-
21 files changed, 20 insertions(+), 19 deletions(-)
rename static/{403-b6bf8cb7.js => 403-75144aa1.js} (99%)
rename static/{404-863e7306.js => 404-de00dcf7.js} (99%)
rename static/{ErrorPageLayout-8748c1a0.js => ErrorPageLayout-f5860d11.js} (86%)
rename static/{SwitchRoles-8e961b35.js => SwitchRoles-79b8f853.js} (92%)
rename static/{directive-9201e298.js => directive-a26b3ef2.js} (95%)
rename static/{index-97081a64.js => index-0668ea34.js} (97%)
rename static/{index-1d04113f.js => index-0adafffd.js} (92%)
rename static/{index-f3884341.js => index-2e851991.js} (93%)
rename static/{index-5ec44631.js => index-4fd067ab.js} (97%)
create mode 100644 static/index-72807629.css
rename static/{index-9f030b02.js => index-7710d4af.js} (99%)
rename static/{index-c50109df.js => index-97ede5c8.js} (83%)
rename static/{index-e706c545.js => index-d31a53fe.js} (79%)
create mode 100644 static/index-d4ce1ec1.js
rename static/{index-60500aa4.js => index-e5ab5012.js} (68%)
delete mode 100644 static/index-eb20fbc5.js
rename static/{index-f792e480.js => index-ef31847c.js} (91%)
rename static/{index.vue_vue_type_script_setup_true_lang-b07736e1.js => index.vue_vue_type_script_setup_true_lang-c3802ea4.js} (92%)
rename static/{page-651fd229.js => page-8fc8749b.js} (79%)
rename static/{use-watermark-30de520f.js => use-watermark-2b515d02.js} (92%)
diff --git a/index.html b/index.html
index 1f07493c..24b37141 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
V3 Admin Vite
-
+
diff --git a/static/403-b6bf8cb7.js b/static/403-75144aa1.js
similarity index 99%
rename from static/403-b6bf8cb7.js
rename to static/403-75144aa1.js
index 4f09a03f..dbc046bf 100644
--- a/static/403-b6bf8cb7.js
+++ b/static/403-75144aa1.js
@@ -1 +1 @@
-import{E as r}from"./ErrorPageLayout-8748c1a0.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-ec167982.js";import"./index-60500aa4.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-f5860d11.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-ec167982.js";import"./index-e5ab5012.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-863e7306.js b/static/404-de00dcf7.js
similarity index 99%
rename from static/404-863e7306.js
rename to static/404-de00dcf7.js
index b1d5fcec..6172d7c1 100644
--- a/static/404-863e7306.js
+++ b/static/404-de00dcf7.js
@@ -1 +1 @@
-import{E as c}from"./ErrorPageLayout-8748c1a0.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-ec167982.js";import"./index-60500aa4.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-f5860d11.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-ec167982.js";import"./index-e5ab5012.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-8748c1a0.js b/static/ErrorPageLayout-f5860d11.js
similarity index 86%
rename from static/ErrorPageLayout-8748c1a0.js
rename to static/ErrorPageLayout-f5860d11.js
index 3225258b..ad802e43 100644
--- a/static/ErrorPageLayout-8748c1a0.js
+++ b/static/ErrorPageLayout-f5860d11.js
@@ -1 +1 @@
-import{_}from"./index-60500aa4.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-ec167982.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-e5ab5012.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-ec167982.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-8e961b35.js b/static/SwitchRoles-79b8f853.js
similarity index 92%
rename from static/SwitchRoles-8e961b35.js
rename to static/SwitchRoles-79b8f853.js
index a50ea2e0..20bd9be3 100644
--- a/static/SwitchRoles-8e961b35.js
+++ b/static/SwitchRoles-79b8f853.js
@@ -1 +1 @@
-import{d as p,_ as u}from"./index-60500aa4.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,aI as b,aJ as x}from"./vue-ec167982.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-e5ab5012.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,aI as b,aJ as x}from"./vue-ec167982.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-9201e298.js b/static/directive-a26b3ef2.js
similarity index 95%
rename from static/directive-9201e298.js
rename to static/directive-a26b3ef2.js
index 10f60ad8..249e8d4a 100644
--- a/static/directive-9201e298.js
+++ b/static/directive-a26b3ef2.js
@@ -1 +1 @@
-import{i as g,_ as y}from"./index-60500aa4.js";import{S as b}from"./SwitchRoles-8e961b35.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-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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{i as g,_ as y}from"./index-e5ab5012.js";import{S as b}from"./SwitchRoles-79b8f853.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-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-97081a64.js b/static/index-0668ea34.js
similarity index 97%
rename from static/index-97081a64.js
rename to static/index-0668ea34.js
index 868ee1bb..2bd11186 100644
--- a/static/index-97081a64.js
+++ b/static/index-0668ea34.js
@@ -1 +1 @@
-import{g as T,d as D}from"./index-e706c545.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-ec167982.js";import{H as R,b as w}from"./element-d7298f5f.js";import"./index-60500aa4.js";import"./vxe-141ad77e.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-d31a53fe.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-ec167982.js";import{H as R,b as w}from"./element-d7298f5f.js";import"./index-e5ab5012.js";import"./vxe-141ad77e.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-1d04113f.js b/static/index-0adafffd.js
similarity index 92%
rename from static/index-1d04113f.js
rename to static/index-0adafffd.js
index 419f8a67..9d00690f 100644
--- a/static/index-1d04113f.js
+++ b/static/index-0adafffd.js
@@ -1 +1 @@
-import{_ as e}from"./index-60500aa4.js";import{l as o,m as n,p as t}from"./vue-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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:""},"该页面是一个 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),r=[s];function c(d,l){return o(),n("div",i,r)}const h=e(a,[["render",c]]);export{h as default};
+import{_ as e}from"./index-e5ab5012.js";import{l as o,m as n,p as t}from"./vue-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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:""},"该页面是一个 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),r=[s];function c(d,l){return o(),n("div",i,r)}const h=e(a,[["render",c]]);export{h as default};
diff --git a/static/index-f3884341.js b/static/index-2e851991.js
similarity index 93%
rename from static/index-f3884341.js
rename to static/index-2e851991.js
index 924969dd..83564733 100644
--- a/static/index-f3884341.js
+++ b/static/index-2e851991.js
@@ -1 +1 @@
-import{H as k,aF as C,r as f,_ as z,ah as s,l as F,m as I,V as e,p as c,P as t,u as i,a3 as U,T as M,a9 as R,aI as S,aJ as q}from"./vue-ec167982.js";import{e as B,d as K,_ as N}from"./index-60500aa4.js";import{v as L,w as T,x as A,y as D,z as E}from"./element-d7298f5f.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang-b07736e1.js";import"./vxe-141ad77e.js";const J="/v3-admin-vite/static/logo-text-2-eef467fb.png",P=d=>(S("data-v-79326910"),d=d(),q(),d),$={class:"login-container"},j={class:"login-card"},G=P(()=>c("div",{class:"title"},[c("img",{src:J})],-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((a,r)=>{a?(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,a)=>{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 F(),I("div",$,[e(H,{class:"theme-switch"}),c("div",j,[G,c("div",O,[e(b,{ref_key:"loginFormRef",ref:g,model:o,rules:w,onKeyup:R(x,["enter"])},{default:t(()=>[e(_,{prop:"username"},{default:t(()=>[e(r,{modelValue:o.username,"onUpdate:modelValue":a[0]||(a[0]=n=>o.username=n),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":i(L),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"password"},{default:t(()=>[e(r,{modelValue:o.password,"onUpdate:modelValue":a[1]||(a[1]=n=>o.password=n),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":i(T),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"code"},{default:t(()=>[e(r,{modelValue:o.code,"onUpdate:modelValue":a[2]||(a[2]=n=>o.code=n),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":i(A),maxlength:"7",size:"large"},{append:t(()=>[e(y,{src:p.value,onClick:m,draggable:"false"},{placeholder:t(()=>[e(v,null,{default:t(()=>[e(i(D))]),_:1})]),error:t(()=>[e(v,null,{default:t(()=>[e(i(E))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(V,{loading:u.value,type:"primary",size:"large",onClick:U(x,["prevent"])},{default:t(()=>[M("登 录")]),_:1},8,["loading","onClick"])]),_:1},8,["model","onKeyup"])])])])}}});const oe=N(Q,[["__scopeId","data-v-79326910"]]);export{oe as default};
+import{H as k,aF as C,r as f,_ as z,ah as s,l as F,m as I,V as e,p as c,P as t,u as i,a3 as U,T as M,a9 as R,aI as S,aJ as q}from"./vue-ec167982.js";import{e as B,d as K,_ as N}from"./index-e5ab5012.js";import{v as L,w as T,x as A,y as D,z as E}from"./element-d7298f5f.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang-c3802ea4.js";import"./vxe-141ad77e.js";const J="/v3-admin-vite/static/logo-text-2-eef467fb.png",P=d=>(S("data-v-79326910"),d=d(),q(),d),$={class:"login-container"},j={class:"login-card"},G=P(()=>c("div",{class:"title"},[c("img",{src:J})],-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((a,r)=>{a?(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,a)=>{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 F(),I("div",$,[e(H,{class:"theme-switch"}),c("div",j,[G,c("div",O,[e(b,{ref_key:"loginFormRef",ref:g,model:o,rules:w,onKeyup:R(x,["enter"])},{default:t(()=>[e(_,{prop:"username"},{default:t(()=>[e(r,{modelValue:o.username,"onUpdate:modelValue":a[0]||(a[0]=n=>o.username=n),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":i(L),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"password"},{default:t(()=>[e(r,{modelValue:o.password,"onUpdate:modelValue":a[1]||(a[1]=n=>o.password=n),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":i(T),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])]),_:1}),e(_,{prop:"code"},{default:t(()=>[e(r,{modelValue:o.code,"onUpdate:modelValue":a[2]||(a[2]=n=>o.code=n),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":i(A),maxlength:"7",size:"large"},{append:t(()=>[e(y,{src:p.value,onClick:m,draggable:"false"},{placeholder:t(()=>[e(v,null,{default:t(()=>[e(i(D))]),_:1})]),error:t(()=>[e(v,null,{default:t(()=>[e(i(E))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(V,{loading:u.value,type:"primary",size:"large",onClick:U(x,["prevent"])},{default:t(()=>[M("登 录")]),_:1},8,["loading","onClick"])]),_:1},8,["model","onKeyup"])])])])}}});const oe=N(Q,[["__scopeId","data-v-79326910"]]);export{oe as default};
diff --git a/static/index-5ec44631.js b/static/index-4fd067ab.js
similarity index 97%
rename from static/index-5ec44631.js
rename to static/index-4fd067ab.js
index c2239d65..56cbab91 100644
--- a/static/index-5ec44631.js
+++ b/static/index-4fd067ab.js
@@ -1 +1 @@
-import{c as K,u as L,d as W,g as X}from"./index-e706c545.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-d7298f5f.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-ec167982.js";import{_ as ce}from"./index-60500aa4.js";import"./vxe-141ad77e.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-d31a53fe.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-d7298f5f.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-ec167982.js";import{_ as ce}from"./index-e5ab5012.js";import"./vxe-141ad77e.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-72807629.css b/static/index-72807629.css
new file mode 100644
index 00000000..af59d09c
--- /dev/null
+++ b/static/index-72807629.css
@@ -0,0 +1 @@
+.el-link[data-v-6b5ec9cb]{font-size:18px}
diff --git a/static/index-9f030b02.js b/static/index-7710d4af.js
similarity index 99%
rename from static/index-9f030b02.js
rename to static/index-7710d4af.js
index 133195c1..6ba33e12 100644
--- a/static/index-9f030b02.js
+++ b/static/index-7710d4af.js
@@ -1 +1 @@
-import{aC as Ge,_ as Je,r as D,b as Pe,E as Fe,d as ge,z as De,H as R,l as u,m as C,U as O,u as h,ah as y,p as S,V as p,P as m,X as Ne,O as x,aD as je,R as re,S as A,aE as _e,aF as pe,F as K,a8 as ee,a3 as ae,I as ce,e as $,aa as Ye,T as Y,J as H,aG as G,aH as ze,w as ie,c as Be,K as We,aI as be,aJ as ye,s as Ze,a9 as se,n as Qe,aK as et,Q as fe,W as ve}from"./vue-ec167982.js";import{g as tt,s as Me,u as me,_ as F,a as Oe,b as J,r as nt,c as we,d as ot}from"./index-60500aa4.js";import{u as st}from"./useWatermark-641078a8.js";import{h as at,j as lt,g as rt,k as ct,b as ue,l as it,n as ut,o as He,u as dt,r as _t,p as pt,q as ft,s as vt,t as mt}from"./element-d7298f5f.js";import{_ as ht}from"./index.vue_vue_type_script_setup_true_lang-b07736e1.js";import"./vxe-141ad77e.js";var X=(n=>(n[n.Mobile=0]="Mobile",n[n.Desktop=1]="Desktop",n))(X||{});const gt="opened",Ue="closed";function bt(n){n?Me(gt):Me(Ue)}const te=Ge("app",()=>{const n=Je({opened:tt()!==Ue,withoutAnimation:!1}),e=D(X.Desktop);return Pe(()=>n.opened,o=>bt(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}}}),yt=992,wt=()=>{const n=te(),{listenerRouteChange:e}=me(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const a=t();n.toggleDevice(a?X.Mobile:X.Desktop),a&&n.closeSidebar(!0)}};e(()=>{n.device===X.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Fe(()=>{window.addEventListener("resize",l)}),ge(()=>{t()&&(n.toggleDevice(X.Mobile),n.closeSidebar(!0))}),De(()=>{window.removeEventListener("resize",l)})},xt={class:"layout-footer"},St=R({__name:"index",setup(n){const e="V3 Admin Vite";return(t,l)=>(u(),C("footer",xt,"MIT © 2021-PRESENT "+O(h(e)),1))}});const kt=F(St,[["__scopeId","data-v-034a5242"]]),Ct={class:"app-main"},Tt={class:"app-scrollbar"},$t=R({__name:"AppMain",setup(n){const e=Oe(),t=J();return(l,a)=>{const o=y("router-view"),s=y("el-backtop");return u(),C("section",Ct,[S("div",Tt,[p(o,null,{default:m(({Component:r,route:i})=>[p(Ne,{name:"el-fade-in",mode:"out-in"},{default:m(()=>[(u(),x(je,{include:h(e).cachedViews},[(u(),x(re(r),{key:i.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),h(t).showFooter?(u(),x(kt,{key:0})):A("",!0)]),p(s),p(s,{target:".app-scrollbar"})])}}});const xe=F($t,[["__scopeId","data-v-d87ee2cd"]]),Et=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=()=>{e("toggleClick")};return(a,o)=>{const s=y("el-icon");return u(),C("div",{onClick:l},[p(s,{size:20,class:"icon"},{default:m(()=>[t.isActive?(u(),x(h(at),{key:0})):(u(),x(h(lt),{key:1}))]),_:1})])}}});const Mt=F(Et,[["__scopeId","data-v-252d9bf8"]]);function Vt(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){a+=n[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:a}),t=o;continue}if(l==="("){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(i=>{var _,d;return((_=i.meta)==null?void 0:_.title)&&((d=i.meta)==null?void 0:d.breadcrumb)!==!1})},s=i=>It(i)(e.params),r=i=>{const{redirect:_,path:d}=i;if(_){t.push(_);return}t.push(s(d))};return l(i=>{i.path.startsWith("/redirect/")||o()},!0),(i,_)=>{const d=y("el-breadcrumb-item"),c=y("el-breadcrumb");return u(),x(c,{class:"app-breadcrumb"},{default:m(()=>[(u(!0),C(K,null,ee(a.value,(b,g)=>(u(),x(d,{key:b.path},{default:m(()=>[b.redirect==="noRedirect"||g===a.value.length-1?(u(),C("span",Ft,O(b.meta.title),1)):(u(),C("a",{key:1,onClick:ae(v=>r(b),["prevent"])},O(b.meta.title),9,Dt))]),_:2},1024))),128))]),_:1})}}});const zt=F(Nt,[["__scopeId","data-v-2eef2d12"]]),de=n=>/^(https?:|mailto:|tel:)/.test(n),Bt=["href"],Wt=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const a=y("router-link");return h(de)(e.to)?(u(),C("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ce(t.$slots,"default")],8,Bt)):(u(),x(a,{key:1,to:e.to},{default:m(()=>[ce(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="",l=0,a=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var i=t.lastIndexOf("/");if(i!==t.length-1){i===-1?(t="",l=0):(t=t.slice(0,i),l=t.length-1-t.lastIndexOf("/")),a=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,a=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(a+1,r):t=n.slice(a+1,r),l=r-a-1;a=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function Ot(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var oe={resolve:function(){for(var e="",t=!1,l,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(l===void 0&&(l=process.cwd()),o=l),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,l=e.charCodeAt(e.length-1)===47;return e=Ve(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(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=l:e+="/"+l)}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 l=1;l_){if(t.charCodeAt(s+c)===47)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else o>_&&(e.charCodeAt(l+c)===47?d=c:c===0&&(d=0));break}var b=e.charCodeAt(l+c),g=t.charCodeAt(s+c);if(b!==g)break;b===47&&(d=c)}var v="";for(c=l+d+1;c<=a;++c)(c===a||e.charCodeAt(c)===47)&&(v.length===0?v+="..":v+="/..");return v.length>0?v+t.slice(s+d):(s+=d,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),l=t===47,a=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){a=s;break}}else o=!1;return a===-1?l?"/":".":l&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);var l=0,a=-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){l=s+1;break}}else i===-1&&(o=!1,i=s+1),r>=0&&(_===t.charCodeAt(r)?--r===-1&&(a=s):(r=-1,a=i))}return l===a?a=i:a===-1&&(a=e.length),e.slice(l,a)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){l=s+1;break}}else a===-1&&(o=!1,a=s+1);return a===-1?"":e.slice(l,a)}},extname:function(e){j(e);for(var t=-1,l=0,a=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var i=e.charCodeAt(r);if(i===47){if(!o){l=r+1;break}continue}a===-1&&(o=!1,a=r+1),i===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||a===-1||s===0||s===1&&t===a-1&&t===l+1?"":e.slice(t,a)},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 Ot("/",e)},parse:function(e){j(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),a=l===47,o;a?(t.root="/",o=1):o=0;for(var s=-1,r=0,i=-1,_=!0,d=e.length-1,c=0;d>=o;--d){if(l=e.charCodeAt(d),l===47){if(!_){r=d+1;break}continue}i===-1&&(_=!1,i=d+1),l===46?s===-1?s=d: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&&a?t.base=t.name=e.slice(1,i):t.base=t.name=e.slice(r,i)):(r===0&&a?(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):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};oe.posix=oe;var Ht=oe;const qe=rt(Ht),Ut={key:2},qt=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=$(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=$(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(i=>{var _;return!((_=i.meta)!=null&&_.hidden)}))??[]}),a=$(()=>l.value.length),o=$(()=>{const r=a.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case de(r):return r;case de(e.basePath):return e.basePath;default:return qe.resolve(e.basePath,r)}};return(r,i)=>{var g;const _=y("SvgIcon"),d=y("el-menu-item"),c=y("sidebar-item",!0),b=y("el-sub-menu");return(g=e.item.meta)!=null&&g.hidden?A("",!0):(u(),C("div",{key:0,class:H({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(u(),C(K,{key:0},[o.value.meta?(u(),x(Wt,{key:0,to:s(o.value.path)},{default:m(()=>[p(d,{index:s(o.value.path)},Ye({default:m(()=>[o.value.meta.svgIcon?(u(),x(_,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(u(),x(re(o.value.meta.elIcon),{key:1,class:"el-icon"})):A("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:m(()=>[Y(O(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):A("",!0)],64)):(u(),x(b,{key:1,index:s(e.item.path),teleported:""},{title:m(()=>{var v,w,T;return[(v=e.item.meta)!=null&&v.svgIcon?(u(),x(_,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(w=e.item.meta)!=null&&w.elIcon?(u(),x(re(e.item.meta.elIcon),{key:1,class:"el-icon"})):A("",!0),(T=e.item.meta)!=null&&T.title?(u(),C("span",Ut,O(e.item.meta.title),1)):A("",!0)]}),default:m(()=>[e.item.children?(u(!0),C(K,{key:0},ee(e.item.children,v=>(u(),x(c,{key:v.path,item:v,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":s(v.path)},null,8,["item","is-collapse","base-path"]))),128)):A("",!0)]),_:1},8,["index"]))],2))}}});const Xt=F(qt,[["__scopeId","data-v-72444830"]]),Kt="/v3-admin-vite/static/logo-cc70e06e.png",Gt="/v3-admin-vite/static/logo-text-1-b6b0364d.png",Jt="/v3-admin-vite/static/logo-text-2-eef467fb.png",jt=["src"],Yt=["src"],Zt=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,t=J(),{layoutMode:l}=G(t);return(a,o)=>{const s=y("router-link");return u(),C("div",{class:H(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":h(l)==="top"}])},[p(Ne,{name:"layout-logo-fade"},{default:m(()=>[e.collapse?(u(),x(s,{key:"collapse",to:"/"},{default:m(()=>[S("img",{src:h(Kt),class:"layout-logo"},null,8,jt)]),_:1})):(u(),x(s,{key:"expand",to:"/"},{default:m(()=>[S("img",{src:h(l)!=="left"?h(Jt):h(Gt),class:"layout-logo-text"},null,8,Yt)]),_:1}))]),_:1})],2)}}});const Se=F(Zt,[["__scopeId","data-v-8474c76e"]]),le=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},Ae=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},Qt=()=>{nt(),location.reload()},en=R({__name:"index",setup(n){ze(f=>({cdfc1cba:E.value,"3610404d":k.value,"00d90309":U.value,c164a31e:W.value,"4cd14484":B.value}));const e=le("--v3-sidebar-menu-bg-color"),t=le("--v3-sidebar-menu-text-color"),l=le("--v3-sidebar-menu-active-text-color"),a=_e(),o=te(),s=we(),r=J(),{sidebar:i,device:_}=G(o),{layoutMode:d,showLogo:c}=G(r),b=$(()=>{const{meta:{activeMenu:f},path:V}=a;return f||V}),g=$(()=>!i.value.opened),v=$(()=>d.value==="left"),w=$(()=>d.value==="top"),T=$(()=>_.value===X.Mobile),I=$(()=>v.value&&c.value),L=$(()=>v.value?e:void 0),N=$(()=>v.value?t:void 0),B=$(()=>v.value?l:void 0),U=$(()=>d.value!=="top"?"var(--v3-sidebar-menu-item-height)":"var(--v3-navigationbar-height)"),W=$(()=>d.value!=="top"?"var(--v3-sidebar-menu-hover-bg-color)":"transparent"),E=$(()=>d.value!=="top"?"2px":"0px"),k=$(()=>d.value==="top"?"none":"block");return(f,V)=>{const z=y("el-menu"),M=y("el-scrollbar");return u(),C("div",{class:H({"has-logo":I.value})},[I.value?(u(),x(Se,{key:0,collapse:g.value},null,8,["collapse"])):A("",!0),p(M,{"wrap-class":"scrollbar-wrapper"},{default:m(()=>[p(z,{"default-active":b.value,collapse:g.value&&!w.value,"background-color":L.value,"text-color":N.value,"active-text-color":B.value,"unique-opened":!0,"collapse-transition":!1,mode:w.value&&!T.value?"horizontal":"vertical"},{default:m(()=>[(u(!0),C(K,null,ee(h(s).routes,P=>(u(),x(Xt,{key:P.path,item:P,"base-path":P.path,"is-collapse":g.value,"is-top":w.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=F(en,[["__scopeId","data-v-0521b0bf"]]),tn={class:"card-header"},nn={class:"card-title"},on={class:"card-time"},sn={key:0,class:"card-avatar"},an=["src"],ln={class:"card-body"},rn=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const a=y("el-empty"),o=y("el-tag"),s=y("el-card");return e.list.length===0?(u(),x(a,{key:0})):(u(!0),C(K,{key:1},ee(e.list,(r,i)=>(u(),x(s,{key:i,shadow:"never",class:"card-container"},{header:m(()=>[S("div",tn,[S("div",null,[S("span",null,[S("span",nn,O(r.title),1),r.extra?(u(),x(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:m(()=>[Y(O(r.extra),1)]),_:2},1032,["type"])):A("",!0)]),S("div",on,O(r.datetime),1)]),r.avatar?(u(),C("div",sn,[S("img",{src:r.avatar,width:"34"},null,8,an)])):A("",!0)])]),default:m(()=>[S("div",ln,O(r.description??"No Data"),1)]),_:2},1024))),128))}}});const cn=F(rn,[["__scopeId","data-v-137655f9"]]),un=[{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"}],dn=[{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"}],_n=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:""},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],pn={class:"notify"},fn={class:"notify-history"},Ie=99,vn=350,mn=R({__name:"index",setup(n){const e=$(()=>l.value.reduce((o,s)=>o+s.list.length,0)),t=D("通知"),l=D([{name:"通知",type:"primary",list:un},{name:"消息",type:"danger",list:dn},{name:"待办",type:"warning",list:_n}]),a=()=>{ue.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=y("el-icon"),i=y("el-tooltip"),_=y("el-badge"),d=y("el-scrollbar"),c=y("el-tab-pane"),b=y("el-tabs"),g=y("el-button"),v=y("el-popover");return u(),C("div",pn,[p(v,{placement:"bottom",width:vn,trigger:"click"},{reference:m(()=>[p(_,{value:e.value,max:Ie,hidden:e.value===0},{default:m(()=>[p(i,{effect:"dark",content:"消息通知",placement:"bottom"},{default:m(()=>[p(r,{size:20},{default:m(()=>[p(h(ct))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:m(()=>[p(b,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=w=>t.value=w),class:"demo-tabs",stretch:""},{default:m(()=>[(u(!0),C(K,null,ee(l.value,(w,T)=>(u(),x(c,{name:w.name,key:T},{label:m(()=>[Y(O(w.name)+" ",1),p(_,{value:w.list.length,max:Ie,type:w.type},null,8,["value","type"])]),default:m(()=>[p(d,{height:"400px"},{default:m(()=>[p(cn,{list:w.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),S("div",fn,[p(g,{link:"",onClick:a},{default:m(()=>[Y("查看"+O(t.value)+"历史",1)]),_:1})])]),_:1})])}}});const hn=F(mn,[["__scopeId","data-v-50089150"]]),Re=[["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"]],Q=(()=>{if(typeof document>"u")return!1;const n=Re[0],e={};for(const t of Re)if((t==null?void 0:t[1])in document){for(const[a,o]of t.entries())e[n[a]]=o;return e}return!1})(),Le={change:Q.fullscreenchange,error:Q.fullscreenerror};let q={request(n=document.documentElement,e){return new Promise((t,l)=>{const a=()=>{q.off("change",a),t()};q.on("change",a);const o=n[Q.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(l)})},exit(){return new Promise((n,e)=>{if(!q.isFullscreen){n();return}const t=()=>{q.off("change",t),n()};q.on("change",t);const l=document[Q.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return q.isFullscreen?q.exit():q.request(n,e)},onchange(n){q.on("change",n)},onerror(n){q.on("error",n)},on(n,e){const t=Le[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Le[n];t&&document.removeEventListener(t,e,!1)},raw:Q};Object.defineProperties(q,{isFullscreen:{get:()=>!!document[Q.fullscreenElement]},element:{enumerable:!0,get:()=>document[Q.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Q.fullscreenEnabled]}});Q||(q={isEnabled:!1});const ne=q,gn=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=D(!1),l=$(()=>t.value?e.exitTips:e.openTips),a=$(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const c=document.querySelector(e.element)||void 0;ne.isEnabled?ne.toggle(c):ue.warning("您的浏览器无法工作")},s=()=>{t.value=ne.isFullscreen};ie(c=>{ne.on("change",s),c(()=>{ne.isEnabled&&ne.off("change",s)})});const r=D(!1),i=$(()=>r.value?"内容区复原":"内容区放大"),_=$(()=>r.value?"fullscreen-exit":"fullscreen"),d=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(c,b)=>{const g=y("SvgIcon"),v=y("el-tooltip"),w=y("el-dropdown-item"),T=y("el-dropdown-menu"),I=y("el-dropdown");return u(),C("div",null,[c.content?(u(),x(I,{key:1},{dropdown:m(()=>[p(T,null,{default:m(()=>[p(w,{onClick:d},{default:m(()=>[Y(O(i.value),1)]),_:1}),p(w,{onClick:o,disabled:t.value},{default:m(()=>[Y("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:m(()=>[p(g,{name:_.value},null,8,["name"])]),_:1})):(u(),x(v,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:m(()=>[p(g,{name:a.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}});const Xe=F(gn,[["__scopeId","data-v-9e7c36e4"]]),bn=["onMouseenter"],yn={class:"result-item-title"},wn=R({__name:"SearchResult",props:{modelValue:{},list:{},isPressUpOrDown:{type:Boolean}},emits:["update:modelValue"],setup(n,{expose:e,emit:t}){const l=n,a=Be(),o=D(0),s=$({get(){return l.modelValue},set(c){t("update:modelValue",c)}}),r=c=>{const b=c.name===s.value;return{background:b?"var(--el-color-primary)":"",color:b?"#fff":""}},i=c=>{l.isPressUpOrDown||(s.value=c.name)},_=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},d=c=>{var w;const b=(w=a==null?void 0:a.proxy)==null?void 0:w.$refs[`resultItemRef${c}`];if(!b)return 0;const v=b[0].offsetTop+128;return v>o.value?v-o.value:0};return Fe(()=>{window.addEventListener("resize",_)}),ge(()=>{_()}),De(()=>{window.removeEventListener("resize",_)}),e({getScrollTop:d}),(c,b)=>{const g=y("SvgIcon");return u(),C("div",null,[(u(!0),C(K,null,ee(c.list,(v,w)=>{var T,I,L;return u(),C("div",{key:w,ref_for:!0,ref:`resultItemRef${w}`,class:"result-item",style:We(r(v)),onMouseenter:N=>i(v)},[(T=v.meta)!=null&&T.svgIcon?(u(),x(g,{key:0,name:v.meta.svgIcon},null,8,["name"])):(I=v.meta)!=null&&I.elIcon?(u(),x(re(v.meta.elIcon),{key:1,class:"el-icon"})):A("",!0),S("span",yn,O((L=v.meta)==null?void 0:L.title),1),s.value&&s.value===v.name?(u(),x(g,{key:2,name:"keyboard-enter"})):A("",!0)],44,bn)}),128))])}}});const xn=F(wn,[["__scopeId","data-v-7383ebb0"]]),Ce=n=>(be("data-v-3171d360"),n=n(),ye(),n),Sn={class:"search-footer"},kn={class:"search-footer-item"},Cn=Ce(()=>S("span",null,"确认",-1)),Tn={class:"search-footer-item"},$n=Ce(()=>S("span",null,"切换",-1)),En={class:"search-footer-item"},Mn=Ce(()=>S("span",null,"关闭",-1)),Vn={class:"search-footer-total"},An=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,t=te(),l=$(()=>t.device===X.Mobile);return(a,o)=>{const s=y("SvgIcon");return u(),C("div",Sn,[l.value?A("",!0):(u(),C(K,{key:0},[S("span",kn,[p(s,{name:"keyboard-enter"}),Cn]),S("span",Tn,[p(s,{name:"keyboard-up"}),p(s,{name:"keyboard-down"}),$n]),S("span",En,[p(s,{name:"keyboard-esc"}),Mn])],64)),S("span",Vn,"共 "+O(e.total)+" 项",1)])}}});const In=F(An,[["__scopeId","data-v-3171d360"]]),Rn=S("p",null,"搜索结果",-1),Ln=R({__name:"SearchModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,l=te(),a=pe(),o=D(null),s=D(null),r=D(null),i=D(""),_=Ze([]),d=D(void 0),c=D(!1),b=$(()=>l.device===X.Mobile?"80vw":"40vw"),g=$({get(){return t.modelValue},set(E){e("update:modelValue",E)}}),v=$(()=>it(we().routes)),w=ut(()=>{var f;const E=T(v.value);_.value=E.filter(V=>{var z,M;return i.value?(M=(z=V.meta)==null?void 0:z.title)==null?void 0:M.toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim()):!1});const k=(f=_.value)==null?void 0:f.length;d.value=k>0?_.value[0].name:void 0},500),T=(E,k=[])=>(E.forEach(f=>{k.push(f),f.children&&T(f.children,k)}),k),I=()=>{g.value=!1,setTimeout(()=>{i.value="",_.value=[]},200)},L=E=>{var f;if(!r.value)return;const k=r.value.getScrollTop(E);(f=s.value)==null||f.setScrollTop(k)},N=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const k=_.value.findIndex(f=>f.name===d.value);if(k===0){const f=_.value[E-1].name;d.value===f&&E>1?(d.value=_.value[E-2].name,L(E-2)):(d.value=f,L(E-1))}else d.value=_.value[k-1].name,L(k-1)},B=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const k=_.value.map(f=>f.name).lastIndexOf(d.value);if(k===E-1){const f=_.value[0].name;d.value===f&&E>1?(d.value=_.value[1].name,L(1)):(d.value=f,L(0))}else d.value=_.value[k+1].name,L(k+1)},U=()=>{var V;const{length:E}=_.value;if(E===0)return;const k=d.value,f=(V=_.value.find(z=>z.name===k))==null?void 0:V.path;if(f&&de(f)){window.open(f,"_blank","noopener, noreferrer");return}if(!k){ue.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{a.push({name:k})}catch{ue.error("该菜单有必填的动态参数,无法通过搜索进入");return}I()},W=()=>{c.value=!1};return(E,k)=>{const f=y("SvgIcon"),V=y("el-input"),z=y("el-empty"),M=y("el-dialog");return u(),x(M,{modelValue:g.value,"onUpdate:modelValue":k[2]||(k[2]=P=>g.value=P),onOpened:k[3]||(k[3]=P=>{var Z;return(Z=o.value)==null?void 0:Z.focus()}),onClosed:k[4]||(k[4]=P=>{var Z;return(Z=o.value)==null?void 0:Z.blur()}),onKeydown:[se(N,["up"]),se(B,["down"]),se(U,["enter"])],onKeyup:se(W,["up","down"]),"before-close":I,width:b.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:m(()=>[p(In,{total:_.value.length},null,8,["total"])]),default:m(()=>[p(V,{ref_key:"inputRef",ref:o,modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=P=>i.value=P),onInput:h(w),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:m(()=>[p(f,{name:"search"})]),_:1},8,["modelValue","onInput"]),_.value.length===0?(u(),x(z,{key:0,description:"暂无搜索结果","image-size":100})):(u(),C(K,{key:1},[Rn,p(h(He),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:m(()=>[p(xn,{ref_key:"searchResultRef",ref:r,modelValue:d.value,"onUpdate:modelValue":k[1]||(k[1]=P=>d.value=P),list:_.value,isPressUpOrDown:c.value,onClick:U},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","onKeydown","onKeyup","width"])}}});const Pn=R({__name:"index",setup(n){const e=D(!1),t=()=>{e.value=!0};return(l,a)=>{const o=y("SvgIcon"),s=y("el-tooltip");return u(),C("div",null,[p(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:m(()=>[p(o,{name:"search",onClick:t})]),_:1}),p(Ln,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])])}}});const Fn=F(Pn,[["__scopeId","data-v-dc5accb4"]]),Dn=n=>(be("data-v-394c5e19"),n=n(),ye(),n),Nn={class:"navigation-bar"},zn={class:"right-menu"},Bn={class:"right-menu-avatar"},Wn={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},On={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},Hn=Dn(()=>S("span",{style:{display:"block"}},"退出登录",-1)),Un=R({__name:"index",setup(n){const e=pe(),t=te(),l=J(),a=ot(),{sidebar:o,device:s}=G(t),{layoutMode:r,showNotify:i,showThemeSwitch:_,showScreenfull:d,showSearchMenu:c}=G(l),b=$(()=>r.value==="top"),g=$(()=>s.value===X.Mobile),v=()=>{t.toggleSidebar(!1)},w=()=>{a.logout(),e.push("/login")};return(T,I)=>{const L=y("el-avatar"),N=y("el-dropdown-item"),B=y("el-dropdown-menu"),U=y("el-dropdown");return u(),C("div",Nn,[!b.value||g.value?(u(),x(Mt,{key:0,"is-active":h(o).opened,class:"hamburger",onToggleClick:v},null,8,["is-active"])):A("",!0),!b.value||g.value?(u(),x(zt,{key:1,class:"breadcrumb"})):A("",!0),b.value&&!g.value?(u(),x(ke,{key:2,class:"sidebar"})):A("",!0),S("div",zn,[h(c)?(u(),x(Fn,{key:0,class:"right-menu-item"})):A("",!0),h(d)?(u(),x(Xe,{key:1,class:"right-menu-item"})):A("",!0),h(_)?(u(),x(ht,{key:2,class:"right-menu-item"})):A("",!0),h(i)?(u(),x(hn,{key:3,class:"right-menu-item"})):A("",!0),p(U,{class:"right-menu-item"},{dropdown:m(()=>[p(B,null,{default:m(()=>[S("a",Wn,[p(N,null,{default:m(()=>[Y("GitHub")]),_:1})]),S("a",On,[p(N,null,{default:m(()=>[Y("Gitee")]),_:1})]),p(N,{divided:"",onClick:w},{default:m(()=>[Hn]),_:1})]),_:1})]),default:m(()=>[S("div",Bn,[p(L,{icon:h(dt),size:30},null,8,["icon"]),S("span",null,O(h(a).username),1)])]),_:1})])])}}});const Te=F(Un,[["__scopeId","data-v-394c5e19"]]),qn={class:"select-layout-mode"},Xn=R({__name:"SelectLayoutMode",setup(n){const e=J(),{layoutMode:t}=G(e),l=$(()=>t.value==="left"),a=$(()=>t.value==="top"),o=$(()=>t.value==="left-top");return(s,r)=>{const i=y("el-aside"),_=y("el-header"),d=y("el-main"),c=y("el-container"),b=y("el-tooltip");return u(),C("div",qn,[p(b,{content:"左侧模式"},{default:m(()=>[p(c,{class:H(["layout-mode left",{active:l.value}]),onClick:r[0]||(r[0]=g=>t.value="left")},{default:m(()=>[p(i),p(c,null,{default:m(()=>[p(_),p(d)]),_:1})]),_:1},8,["class"])]),_:1}),p(b,{content:"顶部模式"},{default:m(()=>[p(c,{class:H(["layout-mode top",{active:a.value}]),onClick:r[1]||(r[1]=g=>t.value="top")},{default:m(()=>[p(_),p(d)]),_:1},8,["class"])]),_:1}),p(b,{content:"混合模式"},{default:m(()=>[p(c,{class:H(["layout-mode left-top",{active:o.value}]),onClick:r[2]||(r[2]=g=>t.value="left-top")},{default:m(()=>[p(_),p(c,null,{default:m(()=>[p(i),p(d)]),_:1})]),_:1},8,["class"])]),_:1})])}}});const Kn=F(Xn,[["__scopeId","data-v-e7938886"]]),Ke=n=>(be("data-v-317305d5"),n=n(),ye(),n),Gn={class:"setting-container"},Jn=Ke(()=>S("h4",null,"布局配置",-1)),jn=Ke(()=>S("h4",null,"功能配置",-1)),Yn={class:"setting-name"},Zn=R({__name:"index",setup(n){const e=J(),{layoutMode:t,showTagsView:l,showLogo:a,fixedHeader:o,showFooter:s,showNotify:r,showThemeSwitch:i,showScreenfull:_,showSearchMenu:d,cacheTagsView:c,showWatermark:b,showGreyMode:g,showColorWeakness:v}=G(e),w={显示标签栏:l,"显示 Logo":a,"固定 Header":o,"显示页脚 Footer":s,显示消息通知:r,显示切换主题按钮:i,显示全屏按钮:_,显示搜索按钮:d,是否缓存标签栏:c,开启系统水印:b,显示灰色模式:g,显示色弱模式:v};return ie(()=>{t.value!=="left"&&(o.value=!0)}),(T,I)=>{const L=y("el-divider"),N=y("el-switch"),B=y("el-button");return u(),C("div",Gn,[Jn,p(Kn),p(L),jn,(u(),C(K,null,ee(w,(U,W,E)=>S("div",{class:"setting-item",key:E},[S("span",Yn,O(W),1),p(N,{modelValue:U.value,"onUpdate:modelValue":k=>U.value=k,disabled:h(t)!=="left"&&W==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),p(B,{type:"danger",icon:h(_t),onClick:h(Qt)},{default:m(()=>[Y("重 置")]),_:1},8,["icon","onClick"])])}}});const Qn=F(Zn,[["__scopeId","data-v-317305d5"]]),eo={class:"scroll-container"},to=200,no=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=_e(),l=J(),{listenerRouteChange:a}=me(),o=D(),s=D();let r=0;const i=({scrollLeft:g})=>{r=g},_=({deltaY:g})=>{/^-/.test(g.toString())?c("left"):c("right")},d=()=>{const g=s.value.clientWidth,v=o.value.wrapRef.clientWidth,w=g-v-r;return{scrollbarContentRefWidth:g,scrollbarRefWidth:v,lastDistance:w}},c=(g,v=to)=>{let w=0;const{scrollbarContentRefWidth:T,scrollbarRefWidth:I,lastDistance:L}=d();I>T||(g==="left"?w=Math.max(0,r-v):w=Math.min(r+v,r+L),o.value.setScrollLeft(w))},b=()=>{const g=e.tagRefs;for(let v=0;vN){const B=I-N;c("right",B);return}}};return a(()=>{Qe(b)}),(g,v)=>{const w=y("el-icon");return u(),C("div",eo,[p(w,{class:"arrow left",onClick:v[0]||(v[0]=T=>c("left"))},{default:m(()=>[p(h(pt))]),_:1}),p(h(He),{ref_key:"scrollbarRef",ref:o,onWheelPassive:_,onScroll:i},{default:m(()=>[S("div",{ref_key:"scrollbarContentRef",ref:s,class:"scrollbar-content"},[ce(g.$slots,"default",{},void 0,!0)],512)]),_:3},512),p(w,{class:"arrow right",onClick:v[1]||(v[1]=T=>c("right"))},{default:m(()=>[p(h(ft))]),_:1}),h(l).showScreenfull?(u(),x(Xe,{key:0,element:".app-main",content:!0,class:"screenfull"})):A("",!0)])}}});const oo=F(no,[["__scopeId","data-v-519b3baa"]]),so={class:"tags-view-container"},ao=R({__name:"index",setup(n){const e=Be(),t=pe(),l=_e(),a=Oe(),o=we(),{listenerRouteChange:s}=me(),r=D([]),i=D(!1),_=D(0),d=D(0),c=D({});let b=[];const g=f=>f.path===l.path,v=f=>{var V;return(V=f.meta)==null?void 0:V.affix},w=(f,V="/")=>{const z=[];return f.forEach(M=>{if(v(M)){const P=qe.resolve(V,M.path);z.push({fullPath:P,path:P,name:M.name,meta:{...M.meta}})}if(M.children){const P=w(M.children,M.path);z.push(...P)}}),z},T=()=>{b=w(o.routes);for(const f of b)f.name&&a.addVisitedView(f)},I=f=>{f.name&&(a.addVisitedView(f),a.addCachedView(f))},L=f=>{a.delCachedView(f),t.replace({path:"/redirect"+f.path,query:f.query})},N=f=>{a.delVisitedView(f),a.delCachedView(f),g(f)&&W(a.visitedViews,f)},B=()=>{const f=c.value.fullPath;f!==l.path&&f!==void 0&&t.push(f),a.delOthersVisitedViews(c.value),a.delOthersCachedViews(c.value)},U=f=>{a.delAllVisitedViews(),a.delAllCachedViews(),!b.some(V=>V.path===l.path)&&W(a.visitedViews,f)},W=(f,V)=>{const z=f.slice(-1)[0],M=z==null?void 0:z.fullPath;M!==void 0?t.push(M):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},E=(f,V)=>{const M=e.proxy.$el.getBoundingClientRect().left,Z=e.proxy.$el.offsetWidth-105,Ee=V.clientX-M+15;d.value=Ee>Z?Z:Ee,_.value=V.clientY,i.value=!0,c.value=f},k=()=>{i.value=!1};return Pe(i,f=>{f?document.body.addEventListener("click",k):document.body.removeEventListener("click",k)}),ge(()=>{T(),s(async f=>{I(f)},!0)}),(f,V)=>{const z=y("el-icon");return u(),C("div",so,[p(oo,{class:"tags-view-wrapper","tag-refs":r.value},{default:m(()=>[(u(!0),C(K,null,ee(h(a).visitedViews,M=>(u(),x(h(et),{ref_for:!0,ref_key:"tagRefs",ref:r,key:M.path,class:H([{active:g(M)},"tags-view-item"]),to:{path:M.path,query:M.query},onMouseup:ae(P=>!v(M)&&N(M),["middle"]),onContextmenu:ae(P=>E(M,P),["prevent"])},{default:m(()=>{var P;return[Y(O((P=M.meta)==null?void 0:P.title)+" ",1),v(M)?A("",!0):(u(),x(z,{key:0,size:12,onClick:ae(Z=>N(M),["prevent","stop"])},{default:m(()=>[p(h(vt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),fe(S("ul",{class:"contextmenu",style:We({left:d.value+"px",top:_.value+"px"})},[S("li",{onClick:V[0]||(V[0]=M=>L(c.value))},"刷新"),v(c.value)?A("",!0):(u(),C("li",{key:0,onClick:V[1]||(V[1]=M=>N(c.value))},"关闭")),S("li",{onClick:B},"关闭其它"),S("li",{onClick:V[2]||(V[2]=M=>U(c.value))},"关闭所有")],4),[[ve,i.value]])])}}});const $e=F(ao,[["__scopeId","data-v-3bc82890"]]),lo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){const e=n;ze(a=>({eee8c778:t}));const t=e.buttonTop+"px",l=D(!1);return(a,o)=>{const s=y("el-icon"),r=y("el-drawer");return u(),C(K,null,[S("div",{class:"handle-button",onClick:o[0]||(o[0]=i=>l.value=!0)},[p(s,{size:24},{default:m(()=>[p(h(mt))]),_:1})]),p(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=i=>l.value=i),size:"300px","with-header":!1},{default:m(()=>[ce(a.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}});const ro=F(lo,[["__scopeId","data-v-ec8bae57"]]),co=R({__name:"LeftMode",setup(n){const e=te(),t=J(),{showTagsView:l,fixedHeader:a}=G(t),o=$(()=>({hideSidebar:!e.sidebar.opened,openSidebar:e.sidebar.opened,withoutAnimation:e.sidebar.withoutAnimation,mobile:e.device===X.Mobile})),s=()=>{e.closeSidebar(!1)};return(r,i)=>(u(),C("div",{class:H([o.value,"app-wrapper"])},[o.value.mobile&&o.value.openSidebar?(u(),C("div",{key:0,class:"drawer-bg",onClick:s})):A("",!0),p(h(ke),{class:"sidebar-container"}),S("div",{class:H([{hasTagsView:h(l)},"main-container"])},[S("div",{class:H([{"fixed-header":h(a)},"layout-header"])},[p(h(Te)),fe(p(h($e),null,null,512),[[ve,h(l)]])],2),p(h(xe),{class:"app-main"})],2)],2))}});const io=F(co,[["__scopeId","data-v-c751cae0"]]),uo={class:"app-wrapper"},_o={class:"fixed-header layout-header"},po={class:"content"},fo=R({__name:"TopMode",setup(n){const e=J(),{showTagsView:t,showLogo:l}=G(e);return(a,o)=>(u(),C("div",uo,[S("div",_o,[S("div",po,[h(l)?(u(),x(h(Se),{key:0,collapse:!1,class:"logo"})):A("",!0),p(h(Te),{class:"navigation-bar"})]),fe(p(h($e),null,null,512),[[ve,h(t)]])]),S("div",{class:H([{hasTagsView:h(t)},"main-container"])},[p(h(xe),{class:"app-main"})],2)]))}});const vo=F(fo,[["__scopeId","data-v-64cfd987"]]),mo={class:"fixed-header layout-header"},ho={class:"content"},go=R({__name:"LeftTopMode",setup(n){const e=te(),t=J(),{showTagsView:l,showLogo:a}=G(t),o=$(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(u(),C("div",{class:H([o.value,"app-wrapper"])},[S("div",mo,[h(a)?(u(),x(h(Se),{key:0,collapse:!1,class:"logo"})):A("",!0),S("div",ho,[p(h(Te)),fe(p(h($e),null,null,512),[[ve,h(l)]])])]),S("div",{class:H([{hasTagsView:h(l)},"main-container"])},[p(h(ke),{class:"sidebar-container"}),p(h(xe),{class:"app-main"})],2)],2))}});const bo=F(go,[["__scopeId","data-v-73d109f7"]]),he="--v3-tagsview-height",yo=R({__name:"index",setup(n){wt();const{setWatermark:e,clearWatermark:t}=st(),l=te(),a=J(),{showSettings:o,layoutMode:s,showTagsView:r,showWatermark:i,showGreyMode:_,showColorWeakness:d}=G(a),c=$(()=>({showGreyMode:_.value,showColorWeakness:d.value})),b=le(he);return ie(()=>{r.value?Ae(he,b):Ae(he,"0px")}),ie(()=>{i.value?e("V3 Admin Vite"):t()}),(g,v)=>(u(),C("div",{class:H(c.value)},[h(s)==="left"||h(l).device===h(X).Mobile?(u(),x(io,{key:0})):h(s)==="top"?(u(),x(vo,{key:1})):h(s)==="left-top"?(u(),x(bo,{key:2})):A("",!0),h(o)?(u(),x(h(ro),{key:3},{default:m(()=>[p(h(Qn))]),_:1})):A("",!0)],2))}});const $o=F(yo,[["__scopeId","data-v-45f3bd78"]]);export{$o as default};
+import{aC as Ge,_ as Je,r as D,b as Pe,E as Fe,d as ge,z as De,H as R,l as u,m as C,U as O,u as h,ah as y,p as S,V as p,P as m,X as Ne,O as x,aD as je,R as re,S as A,aE as _e,aF as pe,F as K,a8 as ee,a3 as ae,I as ce,e as $,aa as Ye,T as Y,J as H,aG as G,aH as ze,w as ie,c as Be,K as We,aI as be,aJ as ye,s as Ze,a9 as se,n as Qe,aK as et,Q as fe,W as ve}from"./vue-ec167982.js";import{g as tt,s as Me,u as me,_ as F,a as Oe,b as J,r as nt,c as we,d as ot}from"./index-e5ab5012.js";import{u as st}from"./useWatermark-641078a8.js";import{h as at,j as lt,g as rt,k as ct,b as ue,l as it,n as ut,o as He,u as dt,r as _t,p as pt,q as ft,s as vt,t as mt}from"./element-d7298f5f.js";import{_ as ht}from"./index.vue_vue_type_script_setup_true_lang-c3802ea4.js";import"./vxe-141ad77e.js";var X=(n=>(n[n.Mobile=0]="Mobile",n[n.Desktop=1]="Desktop",n))(X||{});const gt="opened",Ue="closed";function bt(n){n?Me(gt):Me(Ue)}const te=Ge("app",()=>{const n=Je({opened:tt()!==Ue,withoutAnimation:!1}),e=D(X.Desktop);return Pe(()=>n.opened,o=>bt(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}}}),yt=992,wt=()=>{const n=te(),{listenerRouteChange:e}=me(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const a=t();n.toggleDevice(a?X.Mobile:X.Desktop),a&&n.closeSidebar(!0)}};e(()=>{n.device===X.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Fe(()=>{window.addEventListener("resize",l)}),ge(()=>{t()&&(n.toggleDevice(X.Mobile),n.closeSidebar(!0))}),De(()=>{window.removeEventListener("resize",l)})},xt={class:"layout-footer"},St=R({__name:"index",setup(n){const e="V3 Admin Vite";return(t,l)=>(u(),C("footer",xt,"MIT © 2021-PRESENT "+O(h(e)),1))}});const kt=F(St,[["__scopeId","data-v-034a5242"]]),Ct={class:"app-main"},Tt={class:"app-scrollbar"},$t=R({__name:"AppMain",setup(n){const e=Oe(),t=J();return(l,a)=>{const o=y("router-view"),s=y("el-backtop");return u(),C("section",Ct,[S("div",Tt,[p(o,null,{default:m(({Component:r,route:i})=>[p(Ne,{name:"el-fade-in",mode:"out-in"},{default:m(()=>[(u(),x(je,{include:h(e).cachedViews},[(u(),x(re(r),{key:i.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),h(t).showFooter?(u(),x(kt,{key:0})):A("",!0)]),p(s),p(s,{target:".app-scrollbar"})])}}});const xe=F($t,[["__scopeId","data-v-d87ee2cd"]]),Et=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=()=>{e("toggleClick")};return(a,o)=>{const s=y("el-icon");return u(),C("div",{onClick:l},[p(s,{size:20,class:"icon"},{default:m(()=>[t.isActive?(u(),x(h(at),{key:0})):(u(),x(h(lt),{key:1}))]),_:1})])}}});const Mt=F(Et,[["__scopeId","data-v-252d9bf8"]]);function Vt(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){a+=n[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:a}),t=o;continue}if(l==="("){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(i=>{var _,d;return((_=i.meta)==null?void 0:_.title)&&((d=i.meta)==null?void 0:d.breadcrumb)!==!1})},s=i=>It(i)(e.params),r=i=>{const{redirect:_,path:d}=i;if(_){t.push(_);return}t.push(s(d))};return l(i=>{i.path.startsWith("/redirect/")||o()},!0),(i,_)=>{const d=y("el-breadcrumb-item"),c=y("el-breadcrumb");return u(),x(c,{class:"app-breadcrumb"},{default:m(()=>[(u(!0),C(K,null,ee(a.value,(b,g)=>(u(),x(d,{key:b.path},{default:m(()=>[b.redirect==="noRedirect"||g===a.value.length-1?(u(),C("span",Ft,O(b.meta.title),1)):(u(),C("a",{key:1,onClick:ae(v=>r(b),["prevent"])},O(b.meta.title),9,Dt))]),_:2},1024))),128))]),_:1})}}});const zt=F(Nt,[["__scopeId","data-v-2eef2d12"]]),de=n=>/^(https?:|mailto:|tel:)/.test(n),Bt=["href"],Wt=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const a=y("router-link");return h(de)(e.to)?(u(),C("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ce(t.$slots,"default")],8,Bt)):(u(),x(a,{key:1,to:e.to},{default:m(()=>[ce(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="",l=0,a=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var i=t.lastIndexOf("/");if(i!==t.length-1){i===-1?(t="",l=0):(t=t.slice(0,i),l=t.length-1-t.lastIndexOf("/")),a=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,a=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(a+1,r):t=n.slice(a+1,r),l=r-a-1;a=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function Ot(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var oe={resolve:function(){for(var e="",t=!1,l,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(l===void 0&&(l=process.cwd()),o=l),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,l=e.charCodeAt(e.length-1)===47;return e=Ve(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(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=l:e+="/"+l)}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 l=1;l_){if(t.charCodeAt(s+c)===47)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else o>_&&(e.charCodeAt(l+c)===47?d=c:c===0&&(d=0));break}var b=e.charCodeAt(l+c),g=t.charCodeAt(s+c);if(b!==g)break;b===47&&(d=c)}var v="";for(c=l+d+1;c<=a;++c)(c===a||e.charCodeAt(c)===47)&&(v.length===0?v+="..":v+="/..");return v.length>0?v+t.slice(s+d):(s+=d,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),l=t===47,a=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){a=s;break}}else o=!1;return a===-1?l?"/":".":l&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);var l=0,a=-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){l=s+1;break}}else i===-1&&(o=!1,i=s+1),r>=0&&(_===t.charCodeAt(r)?--r===-1&&(a=s):(r=-1,a=i))}return l===a?a=i:a===-1&&(a=e.length),e.slice(l,a)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){l=s+1;break}}else a===-1&&(o=!1,a=s+1);return a===-1?"":e.slice(l,a)}},extname:function(e){j(e);for(var t=-1,l=0,a=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var i=e.charCodeAt(r);if(i===47){if(!o){l=r+1;break}continue}a===-1&&(o=!1,a=r+1),i===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||a===-1||s===0||s===1&&t===a-1&&t===l+1?"":e.slice(t,a)},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 Ot("/",e)},parse:function(e){j(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),a=l===47,o;a?(t.root="/",o=1):o=0;for(var s=-1,r=0,i=-1,_=!0,d=e.length-1,c=0;d>=o;--d){if(l=e.charCodeAt(d),l===47){if(!_){r=d+1;break}continue}i===-1&&(_=!1,i=d+1),l===46?s===-1?s=d: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&&a?t.base=t.name=e.slice(1,i):t.base=t.name=e.slice(r,i)):(r===0&&a?(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):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};oe.posix=oe;var Ht=oe;const qe=rt(Ht),Ut={key:2},qt=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=$(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=$(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(i=>{var _;return!((_=i.meta)!=null&&_.hidden)}))??[]}),a=$(()=>l.value.length),o=$(()=>{const r=a.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case de(r):return r;case de(e.basePath):return e.basePath;default:return qe.resolve(e.basePath,r)}};return(r,i)=>{var g;const _=y("SvgIcon"),d=y("el-menu-item"),c=y("sidebar-item",!0),b=y("el-sub-menu");return(g=e.item.meta)!=null&&g.hidden?A("",!0):(u(),C("div",{key:0,class:H({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(u(),C(K,{key:0},[o.value.meta?(u(),x(Wt,{key:0,to:s(o.value.path)},{default:m(()=>[p(d,{index:s(o.value.path)},Ye({default:m(()=>[o.value.meta.svgIcon?(u(),x(_,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(u(),x(re(o.value.meta.elIcon),{key:1,class:"el-icon"})):A("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:m(()=>[Y(O(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):A("",!0)],64)):(u(),x(b,{key:1,index:s(e.item.path),teleported:""},{title:m(()=>{var v,w,T;return[(v=e.item.meta)!=null&&v.svgIcon?(u(),x(_,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(w=e.item.meta)!=null&&w.elIcon?(u(),x(re(e.item.meta.elIcon),{key:1,class:"el-icon"})):A("",!0),(T=e.item.meta)!=null&&T.title?(u(),C("span",Ut,O(e.item.meta.title),1)):A("",!0)]}),default:m(()=>[e.item.children?(u(!0),C(K,{key:0},ee(e.item.children,v=>(u(),x(c,{key:v.path,item:v,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":s(v.path)},null,8,["item","is-collapse","base-path"]))),128)):A("",!0)]),_:1},8,["index"]))],2))}}});const Xt=F(qt,[["__scopeId","data-v-72444830"]]),Kt="/v3-admin-vite/static/logo-cc70e06e.png",Gt="/v3-admin-vite/static/logo-text-1-b6b0364d.png",Jt="/v3-admin-vite/static/logo-text-2-eef467fb.png",jt=["src"],Yt=["src"],Zt=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,t=J(),{layoutMode:l}=G(t);return(a,o)=>{const s=y("router-link");return u(),C("div",{class:H(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":h(l)==="top"}])},[p(Ne,{name:"layout-logo-fade"},{default:m(()=>[e.collapse?(u(),x(s,{key:"collapse",to:"/"},{default:m(()=>[S("img",{src:h(Kt),class:"layout-logo"},null,8,jt)]),_:1})):(u(),x(s,{key:"expand",to:"/"},{default:m(()=>[S("img",{src:h(l)!=="left"?h(Jt):h(Gt),class:"layout-logo-text"},null,8,Yt)]),_:1}))]),_:1})],2)}}});const Se=F(Zt,[["__scopeId","data-v-8474c76e"]]),le=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},Ae=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},Qt=()=>{nt(),location.reload()},en=R({__name:"index",setup(n){ze(f=>({cdfc1cba:E.value,"3610404d":k.value,"00d90309":U.value,c164a31e:W.value,"4cd14484":B.value}));const e=le("--v3-sidebar-menu-bg-color"),t=le("--v3-sidebar-menu-text-color"),l=le("--v3-sidebar-menu-active-text-color"),a=_e(),o=te(),s=we(),r=J(),{sidebar:i,device:_}=G(o),{layoutMode:d,showLogo:c}=G(r),b=$(()=>{const{meta:{activeMenu:f},path:V}=a;return f||V}),g=$(()=>!i.value.opened),v=$(()=>d.value==="left"),w=$(()=>d.value==="top"),T=$(()=>_.value===X.Mobile),I=$(()=>v.value&&c.value),L=$(()=>v.value?e:void 0),N=$(()=>v.value?t:void 0),B=$(()=>v.value?l:void 0),U=$(()=>d.value!=="top"?"var(--v3-sidebar-menu-item-height)":"var(--v3-navigationbar-height)"),W=$(()=>d.value!=="top"?"var(--v3-sidebar-menu-hover-bg-color)":"transparent"),E=$(()=>d.value!=="top"?"2px":"0px"),k=$(()=>d.value==="top"?"none":"block");return(f,V)=>{const z=y("el-menu"),M=y("el-scrollbar");return u(),C("div",{class:H({"has-logo":I.value})},[I.value?(u(),x(Se,{key:0,collapse:g.value},null,8,["collapse"])):A("",!0),p(M,{"wrap-class":"scrollbar-wrapper"},{default:m(()=>[p(z,{"default-active":b.value,collapse:g.value&&!w.value,"background-color":L.value,"text-color":N.value,"active-text-color":B.value,"unique-opened":!0,"collapse-transition":!1,mode:w.value&&!T.value?"horizontal":"vertical"},{default:m(()=>[(u(!0),C(K,null,ee(h(s).routes,P=>(u(),x(Xt,{key:P.path,item:P,"base-path":P.path,"is-collapse":g.value,"is-top":w.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=F(en,[["__scopeId","data-v-0521b0bf"]]),tn={class:"card-header"},nn={class:"card-title"},on={class:"card-time"},sn={key:0,class:"card-avatar"},an=["src"],ln={class:"card-body"},rn=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const a=y("el-empty"),o=y("el-tag"),s=y("el-card");return e.list.length===0?(u(),x(a,{key:0})):(u(!0),C(K,{key:1},ee(e.list,(r,i)=>(u(),x(s,{key:i,shadow:"never",class:"card-container"},{header:m(()=>[S("div",tn,[S("div",null,[S("span",null,[S("span",nn,O(r.title),1),r.extra?(u(),x(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:m(()=>[Y(O(r.extra),1)]),_:2},1032,["type"])):A("",!0)]),S("div",on,O(r.datetime),1)]),r.avatar?(u(),C("div",sn,[S("img",{src:r.avatar,width:"34"},null,8,an)])):A("",!0)])]),default:m(()=>[S("div",ln,O(r.description??"No Data"),1)]),_:2},1024))),128))}}});const cn=F(rn,[["__scopeId","data-v-137655f9"]]),un=[{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"}],dn=[{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"}],_n=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:""},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],pn={class:"notify"},fn={class:"notify-history"},Ie=99,vn=350,mn=R({__name:"index",setup(n){const e=$(()=>l.value.reduce((o,s)=>o+s.list.length,0)),t=D("通知"),l=D([{name:"通知",type:"primary",list:un},{name:"消息",type:"danger",list:dn},{name:"待办",type:"warning",list:_n}]),a=()=>{ue.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=y("el-icon"),i=y("el-tooltip"),_=y("el-badge"),d=y("el-scrollbar"),c=y("el-tab-pane"),b=y("el-tabs"),g=y("el-button"),v=y("el-popover");return u(),C("div",pn,[p(v,{placement:"bottom",width:vn,trigger:"click"},{reference:m(()=>[p(_,{value:e.value,max:Ie,hidden:e.value===0},{default:m(()=>[p(i,{effect:"dark",content:"消息通知",placement:"bottom"},{default:m(()=>[p(r,{size:20},{default:m(()=>[p(h(ct))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:m(()=>[p(b,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=w=>t.value=w),class:"demo-tabs",stretch:""},{default:m(()=>[(u(!0),C(K,null,ee(l.value,(w,T)=>(u(),x(c,{name:w.name,key:T},{label:m(()=>[Y(O(w.name)+" ",1),p(_,{value:w.list.length,max:Ie,type:w.type},null,8,["value","type"])]),default:m(()=>[p(d,{height:"400px"},{default:m(()=>[p(cn,{list:w.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),S("div",fn,[p(g,{link:"",onClick:a},{default:m(()=>[Y("查看"+O(t.value)+"历史",1)]),_:1})])]),_:1})])}}});const hn=F(mn,[["__scopeId","data-v-50089150"]]),Re=[["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"]],Q=(()=>{if(typeof document>"u")return!1;const n=Re[0],e={};for(const t of Re)if((t==null?void 0:t[1])in document){for(const[a,o]of t.entries())e[n[a]]=o;return e}return!1})(),Le={change:Q.fullscreenchange,error:Q.fullscreenerror};let q={request(n=document.documentElement,e){return new Promise((t,l)=>{const a=()=>{q.off("change",a),t()};q.on("change",a);const o=n[Q.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(l)})},exit(){return new Promise((n,e)=>{if(!q.isFullscreen){n();return}const t=()=>{q.off("change",t),n()};q.on("change",t);const l=document[Q.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return q.isFullscreen?q.exit():q.request(n,e)},onchange(n){q.on("change",n)},onerror(n){q.on("error",n)},on(n,e){const t=Le[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Le[n];t&&document.removeEventListener(t,e,!1)},raw:Q};Object.defineProperties(q,{isFullscreen:{get:()=>!!document[Q.fullscreenElement]},element:{enumerable:!0,get:()=>document[Q.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Q.fullscreenEnabled]}});Q||(q={isEnabled:!1});const ne=q,gn=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=D(!1),l=$(()=>t.value?e.exitTips:e.openTips),a=$(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const c=document.querySelector(e.element)||void 0;ne.isEnabled?ne.toggle(c):ue.warning("您的浏览器无法工作")},s=()=>{t.value=ne.isFullscreen};ie(c=>{ne.on("change",s),c(()=>{ne.isEnabled&&ne.off("change",s)})});const r=D(!1),i=$(()=>r.value?"内容区复原":"内容区放大"),_=$(()=>r.value?"fullscreen-exit":"fullscreen"),d=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(c,b)=>{const g=y("SvgIcon"),v=y("el-tooltip"),w=y("el-dropdown-item"),T=y("el-dropdown-menu"),I=y("el-dropdown");return u(),C("div",null,[c.content?(u(),x(I,{key:1},{dropdown:m(()=>[p(T,null,{default:m(()=>[p(w,{onClick:d},{default:m(()=>[Y(O(i.value),1)]),_:1}),p(w,{onClick:o,disabled:t.value},{default:m(()=>[Y("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:m(()=>[p(g,{name:_.value},null,8,["name"])]),_:1})):(u(),x(v,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:m(()=>[p(g,{name:a.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}});const Xe=F(gn,[["__scopeId","data-v-9e7c36e4"]]),bn=["onMouseenter"],yn={class:"result-item-title"},wn=R({__name:"SearchResult",props:{modelValue:{},list:{},isPressUpOrDown:{type:Boolean}},emits:["update:modelValue"],setup(n,{expose:e,emit:t}){const l=n,a=Be(),o=D(0),s=$({get(){return l.modelValue},set(c){t("update:modelValue",c)}}),r=c=>{const b=c.name===s.value;return{background:b?"var(--el-color-primary)":"",color:b?"#fff":""}},i=c=>{l.isPressUpOrDown||(s.value=c.name)},_=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},d=c=>{var w;const b=(w=a==null?void 0:a.proxy)==null?void 0:w.$refs[`resultItemRef${c}`];if(!b)return 0;const v=b[0].offsetTop+128;return v>o.value?v-o.value:0};return Fe(()=>{window.addEventListener("resize",_)}),ge(()=>{_()}),De(()=>{window.removeEventListener("resize",_)}),e({getScrollTop:d}),(c,b)=>{const g=y("SvgIcon");return u(),C("div",null,[(u(!0),C(K,null,ee(c.list,(v,w)=>{var T,I,L;return u(),C("div",{key:w,ref_for:!0,ref:`resultItemRef${w}`,class:"result-item",style:We(r(v)),onMouseenter:N=>i(v)},[(T=v.meta)!=null&&T.svgIcon?(u(),x(g,{key:0,name:v.meta.svgIcon},null,8,["name"])):(I=v.meta)!=null&&I.elIcon?(u(),x(re(v.meta.elIcon),{key:1,class:"el-icon"})):A("",!0),S("span",yn,O((L=v.meta)==null?void 0:L.title),1),s.value&&s.value===v.name?(u(),x(g,{key:2,name:"keyboard-enter"})):A("",!0)],44,bn)}),128))])}}});const xn=F(wn,[["__scopeId","data-v-7383ebb0"]]),Ce=n=>(be("data-v-3171d360"),n=n(),ye(),n),Sn={class:"search-footer"},kn={class:"search-footer-item"},Cn=Ce(()=>S("span",null,"确认",-1)),Tn={class:"search-footer-item"},$n=Ce(()=>S("span",null,"切换",-1)),En={class:"search-footer-item"},Mn=Ce(()=>S("span",null,"关闭",-1)),Vn={class:"search-footer-total"},An=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,t=te(),l=$(()=>t.device===X.Mobile);return(a,o)=>{const s=y("SvgIcon");return u(),C("div",Sn,[l.value?A("",!0):(u(),C(K,{key:0},[S("span",kn,[p(s,{name:"keyboard-enter"}),Cn]),S("span",Tn,[p(s,{name:"keyboard-up"}),p(s,{name:"keyboard-down"}),$n]),S("span",En,[p(s,{name:"keyboard-esc"}),Mn])],64)),S("span",Vn,"共 "+O(e.total)+" 项",1)])}}});const In=F(An,[["__scopeId","data-v-3171d360"]]),Rn=S("p",null,"搜索结果",-1),Ln=R({__name:"SearchModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,l=te(),a=pe(),o=D(null),s=D(null),r=D(null),i=D(""),_=Ze([]),d=D(void 0),c=D(!1),b=$(()=>l.device===X.Mobile?"80vw":"40vw"),g=$({get(){return t.modelValue},set(E){e("update:modelValue",E)}}),v=$(()=>it(we().routes)),w=ut(()=>{var f;const E=T(v.value);_.value=E.filter(V=>{var z,M;return i.value?(M=(z=V.meta)==null?void 0:z.title)==null?void 0:M.toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim()):!1});const k=(f=_.value)==null?void 0:f.length;d.value=k>0?_.value[0].name:void 0},500),T=(E,k=[])=>(E.forEach(f=>{k.push(f),f.children&&T(f.children,k)}),k),I=()=>{g.value=!1,setTimeout(()=>{i.value="",_.value=[]},200)},L=E=>{var f;if(!r.value)return;const k=r.value.getScrollTop(E);(f=s.value)==null||f.setScrollTop(k)},N=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const k=_.value.findIndex(f=>f.name===d.value);if(k===0){const f=_.value[E-1].name;d.value===f&&E>1?(d.value=_.value[E-2].name,L(E-2)):(d.value=f,L(E-1))}else d.value=_.value[k-1].name,L(k-1)},B=()=>{c.value=!0;const{length:E}=_.value;if(E===0)return;const k=_.value.map(f=>f.name).lastIndexOf(d.value);if(k===E-1){const f=_.value[0].name;d.value===f&&E>1?(d.value=_.value[1].name,L(1)):(d.value=f,L(0))}else d.value=_.value[k+1].name,L(k+1)},U=()=>{var V;const{length:E}=_.value;if(E===0)return;const k=d.value,f=(V=_.value.find(z=>z.name===k))==null?void 0:V.path;if(f&&de(f)){window.open(f,"_blank","noopener, noreferrer");return}if(!k){ue.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{a.push({name:k})}catch{ue.error("该菜单有必填的动态参数,无法通过搜索进入");return}I()},W=()=>{c.value=!1};return(E,k)=>{const f=y("SvgIcon"),V=y("el-input"),z=y("el-empty"),M=y("el-dialog");return u(),x(M,{modelValue:g.value,"onUpdate:modelValue":k[2]||(k[2]=P=>g.value=P),onOpened:k[3]||(k[3]=P=>{var Z;return(Z=o.value)==null?void 0:Z.focus()}),onClosed:k[4]||(k[4]=P=>{var Z;return(Z=o.value)==null?void 0:Z.blur()}),onKeydown:[se(N,["up"]),se(B,["down"]),se(U,["enter"])],onKeyup:se(W,["up","down"]),"before-close":I,width:b.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:m(()=>[p(In,{total:_.value.length},null,8,["total"])]),default:m(()=>[p(V,{ref_key:"inputRef",ref:o,modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=P=>i.value=P),onInput:h(w),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:m(()=>[p(f,{name:"search"})]),_:1},8,["modelValue","onInput"]),_.value.length===0?(u(),x(z,{key:0,description:"暂无搜索结果","image-size":100})):(u(),C(K,{key:1},[Rn,p(h(He),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:m(()=>[p(xn,{ref_key:"searchResultRef",ref:r,modelValue:d.value,"onUpdate:modelValue":k[1]||(k[1]=P=>d.value=P),list:_.value,isPressUpOrDown:c.value,onClick:U},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","onKeydown","onKeyup","width"])}}});const Pn=R({__name:"index",setup(n){const e=D(!1),t=()=>{e.value=!0};return(l,a)=>{const o=y("SvgIcon"),s=y("el-tooltip");return u(),C("div",null,[p(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:m(()=>[p(o,{name:"search",onClick:t})]),_:1}),p(Ln,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])])}}});const Fn=F(Pn,[["__scopeId","data-v-dc5accb4"]]),Dn=n=>(be("data-v-394c5e19"),n=n(),ye(),n),Nn={class:"navigation-bar"},zn={class:"right-menu"},Bn={class:"right-menu-avatar"},Wn={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},On={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},Hn=Dn(()=>S("span",{style:{display:"block"}},"退出登录",-1)),Un=R({__name:"index",setup(n){const e=pe(),t=te(),l=J(),a=ot(),{sidebar:o,device:s}=G(t),{layoutMode:r,showNotify:i,showThemeSwitch:_,showScreenfull:d,showSearchMenu:c}=G(l),b=$(()=>r.value==="top"),g=$(()=>s.value===X.Mobile),v=()=>{t.toggleSidebar(!1)},w=()=>{a.logout(),e.push("/login")};return(T,I)=>{const L=y("el-avatar"),N=y("el-dropdown-item"),B=y("el-dropdown-menu"),U=y("el-dropdown");return u(),C("div",Nn,[!b.value||g.value?(u(),x(Mt,{key:0,"is-active":h(o).opened,class:"hamburger",onToggleClick:v},null,8,["is-active"])):A("",!0),!b.value||g.value?(u(),x(zt,{key:1,class:"breadcrumb"})):A("",!0),b.value&&!g.value?(u(),x(ke,{key:2,class:"sidebar"})):A("",!0),S("div",zn,[h(c)?(u(),x(Fn,{key:0,class:"right-menu-item"})):A("",!0),h(d)?(u(),x(Xe,{key:1,class:"right-menu-item"})):A("",!0),h(_)?(u(),x(ht,{key:2,class:"right-menu-item"})):A("",!0),h(i)?(u(),x(hn,{key:3,class:"right-menu-item"})):A("",!0),p(U,{class:"right-menu-item"},{dropdown:m(()=>[p(B,null,{default:m(()=>[S("a",Wn,[p(N,null,{default:m(()=>[Y("GitHub")]),_:1})]),S("a",On,[p(N,null,{default:m(()=>[Y("Gitee")]),_:1})]),p(N,{divided:"",onClick:w},{default:m(()=>[Hn]),_:1})]),_:1})]),default:m(()=>[S("div",Bn,[p(L,{icon:h(dt),size:30},null,8,["icon"]),S("span",null,O(h(a).username),1)])]),_:1})])])}}});const Te=F(Un,[["__scopeId","data-v-394c5e19"]]),qn={class:"select-layout-mode"},Xn=R({__name:"SelectLayoutMode",setup(n){const e=J(),{layoutMode:t}=G(e),l=$(()=>t.value==="left"),a=$(()=>t.value==="top"),o=$(()=>t.value==="left-top");return(s,r)=>{const i=y("el-aside"),_=y("el-header"),d=y("el-main"),c=y("el-container"),b=y("el-tooltip");return u(),C("div",qn,[p(b,{content:"左侧模式"},{default:m(()=>[p(c,{class:H(["layout-mode left",{active:l.value}]),onClick:r[0]||(r[0]=g=>t.value="left")},{default:m(()=>[p(i),p(c,null,{default:m(()=>[p(_),p(d)]),_:1})]),_:1},8,["class"])]),_:1}),p(b,{content:"顶部模式"},{default:m(()=>[p(c,{class:H(["layout-mode top",{active:a.value}]),onClick:r[1]||(r[1]=g=>t.value="top")},{default:m(()=>[p(_),p(d)]),_:1},8,["class"])]),_:1}),p(b,{content:"混合模式"},{default:m(()=>[p(c,{class:H(["layout-mode left-top",{active:o.value}]),onClick:r[2]||(r[2]=g=>t.value="left-top")},{default:m(()=>[p(_),p(c,null,{default:m(()=>[p(i),p(d)]),_:1})]),_:1},8,["class"])]),_:1})])}}});const Kn=F(Xn,[["__scopeId","data-v-e7938886"]]),Ke=n=>(be("data-v-317305d5"),n=n(),ye(),n),Gn={class:"setting-container"},Jn=Ke(()=>S("h4",null,"布局配置",-1)),jn=Ke(()=>S("h4",null,"功能配置",-1)),Yn={class:"setting-name"},Zn=R({__name:"index",setup(n){const e=J(),{layoutMode:t,showTagsView:l,showLogo:a,fixedHeader:o,showFooter:s,showNotify:r,showThemeSwitch:i,showScreenfull:_,showSearchMenu:d,cacheTagsView:c,showWatermark:b,showGreyMode:g,showColorWeakness:v}=G(e),w={显示标签栏:l,"显示 Logo":a,"固定 Header":o,"显示页脚 Footer":s,显示消息通知:r,显示切换主题按钮:i,显示全屏按钮:_,显示搜索按钮:d,是否缓存标签栏:c,开启系统水印:b,显示灰色模式:g,显示色弱模式:v};return ie(()=>{t.value!=="left"&&(o.value=!0)}),(T,I)=>{const L=y("el-divider"),N=y("el-switch"),B=y("el-button");return u(),C("div",Gn,[Jn,p(Kn),p(L),jn,(u(),C(K,null,ee(w,(U,W,E)=>S("div",{class:"setting-item",key:E},[S("span",Yn,O(W),1),p(N,{modelValue:U.value,"onUpdate:modelValue":k=>U.value=k,disabled:h(t)!=="left"&&W==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),p(B,{type:"danger",icon:h(_t),onClick:h(Qt)},{default:m(()=>[Y("重 置")]),_:1},8,["icon","onClick"])])}}});const Qn=F(Zn,[["__scopeId","data-v-317305d5"]]),eo={class:"scroll-container"},to=200,no=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=_e(),l=J(),{listenerRouteChange:a}=me(),o=D(),s=D();let r=0;const i=({scrollLeft:g})=>{r=g},_=({deltaY:g})=>{/^-/.test(g.toString())?c("left"):c("right")},d=()=>{const g=s.value.clientWidth,v=o.value.wrapRef.clientWidth,w=g-v-r;return{scrollbarContentRefWidth:g,scrollbarRefWidth:v,lastDistance:w}},c=(g,v=to)=>{let w=0;const{scrollbarContentRefWidth:T,scrollbarRefWidth:I,lastDistance:L}=d();I>T||(g==="left"?w=Math.max(0,r-v):w=Math.min(r+v,r+L),o.value.setScrollLeft(w))},b=()=>{const g=e.tagRefs;for(let v=0;vN){const B=I-N;c("right",B);return}}};return a(()=>{Qe(b)}),(g,v)=>{const w=y("el-icon");return u(),C("div",eo,[p(w,{class:"arrow left",onClick:v[0]||(v[0]=T=>c("left"))},{default:m(()=>[p(h(pt))]),_:1}),p(h(He),{ref_key:"scrollbarRef",ref:o,onWheelPassive:_,onScroll:i},{default:m(()=>[S("div",{ref_key:"scrollbarContentRef",ref:s,class:"scrollbar-content"},[ce(g.$slots,"default",{},void 0,!0)],512)]),_:3},512),p(w,{class:"arrow right",onClick:v[1]||(v[1]=T=>c("right"))},{default:m(()=>[p(h(ft))]),_:1}),h(l).showScreenfull?(u(),x(Xe,{key:0,element:".app-main",content:!0,class:"screenfull"})):A("",!0)])}}});const oo=F(no,[["__scopeId","data-v-519b3baa"]]),so={class:"tags-view-container"},ao=R({__name:"index",setup(n){const e=Be(),t=pe(),l=_e(),a=Oe(),o=we(),{listenerRouteChange:s}=me(),r=D([]),i=D(!1),_=D(0),d=D(0),c=D({});let b=[];const g=f=>f.path===l.path,v=f=>{var V;return(V=f.meta)==null?void 0:V.affix},w=(f,V="/")=>{const z=[];return f.forEach(M=>{if(v(M)){const P=qe.resolve(V,M.path);z.push({fullPath:P,path:P,name:M.name,meta:{...M.meta}})}if(M.children){const P=w(M.children,M.path);z.push(...P)}}),z},T=()=>{b=w(o.routes);for(const f of b)f.name&&a.addVisitedView(f)},I=f=>{f.name&&(a.addVisitedView(f),a.addCachedView(f))},L=f=>{a.delCachedView(f),t.replace({path:"/redirect"+f.path,query:f.query})},N=f=>{a.delVisitedView(f),a.delCachedView(f),g(f)&&W(a.visitedViews,f)},B=()=>{const f=c.value.fullPath;f!==l.path&&f!==void 0&&t.push(f),a.delOthersVisitedViews(c.value),a.delOthersCachedViews(c.value)},U=f=>{a.delAllVisitedViews(),a.delAllCachedViews(),!b.some(V=>V.path===l.path)&&W(a.visitedViews,f)},W=(f,V)=>{const z=f.slice(-1)[0],M=z==null?void 0:z.fullPath;M!==void 0?t.push(M):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},E=(f,V)=>{const M=e.proxy.$el.getBoundingClientRect().left,Z=e.proxy.$el.offsetWidth-105,Ee=V.clientX-M+15;d.value=Ee>Z?Z:Ee,_.value=V.clientY,i.value=!0,c.value=f},k=()=>{i.value=!1};return Pe(i,f=>{f?document.body.addEventListener("click",k):document.body.removeEventListener("click",k)}),ge(()=>{T(),s(async f=>{I(f)},!0)}),(f,V)=>{const z=y("el-icon");return u(),C("div",so,[p(oo,{class:"tags-view-wrapper","tag-refs":r.value},{default:m(()=>[(u(!0),C(K,null,ee(h(a).visitedViews,M=>(u(),x(h(et),{ref_for:!0,ref_key:"tagRefs",ref:r,key:M.path,class:H([{active:g(M)},"tags-view-item"]),to:{path:M.path,query:M.query},onMouseup:ae(P=>!v(M)&&N(M),["middle"]),onContextmenu:ae(P=>E(M,P),["prevent"])},{default:m(()=>{var P;return[Y(O((P=M.meta)==null?void 0:P.title)+" ",1),v(M)?A("",!0):(u(),x(z,{key:0,size:12,onClick:ae(Z=>N(M),["prevent","stop"])},{default:m(()=>[p(h(vt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),fe(S("ul",{class:"contextmenu",style:We({left:d.value+"px",top:_.value+"px"})},[S("li",{onClick:V[0]||(V[0]=M=>L(c.value))},"刷新"),v(c.value)?A("",!0):(u(),C("li",{key:0,onClick:V[1]||(V[1]=M=>N(c.value))},"关闭")),S("li",{onClick:B},"关闭其它"),S("li",{onClick:V[2]||(V[2]=M=>U(c.value))},"关闭所有")],4),[[ve,i.value]])])}}});const $e=F(ao,[["__scopeId","data-v-3bc82890"]]),lo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){const e=n;ze(a=>({eee8c778:t}));const t=e.buttonTop+"px",l=D(!1);return(a,o)=>{const s=y("el-icon"),r=y("el-drawer");return u(),C(K,null,[S("div",{class:"handle-button",onClick:o[0]||(o[0]=i=>l.value=!0)},[p(s,{size:24},{default:m(()=>[p(h(mt))]),_:1})]),p(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=i=>l.value=i),size:"300px","with-header":!1},{default:m(()=>[ce(a.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}});const ro=F(lo,[["__scopeId","data-v-ec8bae57"]]),co=R({__name:"LeftMode",setup(n){const e=te(),t=J(),{showTagsView:l,fixedHeader:a}=G(t),o=$(()=>({hideSidebar:!e.sidebar.opened,openSidebar:e.sidebar.opened,withoutAnimation:e.sidebar.withoutAnimation,mobile:e.device===X.Mobile})),s=()=>{e.closeSidebar(!1)};return(r,i)=>(u(),C("div",{class:H([o.value,"app-wrapper"])},[o.value.mobile&&o.value.openSidebar?(u(),C("div",{key:0,class:"drawer-bg",onClick:s})):A("",!0),p(h(ke),{class:"sidebar-container"}),S("div",{class:H([{hasTagsView:h(l)},"main-container"])},[S("div",{class:H([{"fixed-header":h(a)},"layout-header"])},[p(h(Te)),fe(p(h($e),null,null,512),[[ve,h(l)]])],2),p(h(xe),{class:"app-main"})],2)],2))}});const io=F(co,[["__scopeId","data-v-c751cae0"]]),uo={class:"app-wrapper"},_o={class:"fixed-header layout-header"},po={class:"content"},fo=R({__name:"TopMode",setup(n){const e=J(),{showTagsView:t,showLogo:l}=G(e);return(a,o)=>(u(),C("div",uo,[S("div",_o,[S("div",po,[h(l)?(u(),x(h(Se),{key:0,collapse:!1,class:"logo"})):A("",!0),p(h(Te),{class:"navigation-bar"})]),fe(p(h($e),null,null,512),[[ve,h(t)]])]),S("div",{class:H([{hasTagsView:h(t)},"main-container"])},[p(h(xe),{class:"app-main"})],2)]))}});const vo=F(fo,[["__scopeId","data-v-64cfd987"]]),mo={class:"fixed-header layout-header"},ho={class:"content"},go=R({__name:"LeftTopMode",setup(n){const e=te(),t=J(),{showTagsView:l,showLogo:a}=G(t),o=$(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(u(),C("div",{class:H([o.value,"app-wrapper"])},[S("div",mo,[h(a)?(u(),x(h(Se),{key:0,collapse:!1,class:"logo"})):A("",!0),S("div",ho,[p(h(Te)),fe(p(h($e),null,null,512),[[ve,h(l)]])])]),S("div",{class:H([{hasTagsView:h(l)},"main-container"])},[p(h(ke),{class:"sidebar-container"}),p(h(xe),{class:"app-main"})],2)],2))}});const bo=F(go,[["__scopeId","data-v-73d109f7"]]),he="--v3-tagsview-height",yo=R({__name:"index",setup(n){wt();const{setWatermark:e,clearWatermark:t}=st(),l=te(),a=J(),{showSettings:o,layoutMode:s,showTagsView:r,showWatermark:i,showGreyMode:_,showColorWeakness:d}=G(a),c=$(()=>({showGreyMode:_.value,showColorWeakness:d.value})),b=le(he);return ie(()=>{r.value?Ae(he,b):Ae(he,"0px")}),ie(()=>{i.value?e("V3 Admin Vite"):t()}),(g,v)=>(u(),C("div",{class:H(c.value)},[h(s)==="left"||h(l).device===h(X).Mobile?(u(),x(io,{key:0})):h(s)==="top"?(u(),x(vo,{key:1})):h(s)==="left-top"?(u(),x(bo,{key:2})):A("",!0),h(o)?(u(),x(h(ro),{key:3},{default:m(()=>[p(h(Qn))]),_:1})):A("",!0)],2))}});const $o=F(yo,[["__scopeId","data-v-45f3bd78"]]);export{$o as default};
diff --git a/static/index-c50109df.js b/static/index-97ede5c8.js
similarity index 83%
rename from static/index-c50109df.js
rename to static/index-97ede5c8.js
index fc782c7e..e4c82499 100644
--- a/static/index-c50109df.js
+++ b/static/index-97ede5c8.js
@@ -1 +1 @@
-import{_ as n}from"./index-60500aa4.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-e5ab5012.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-e706c545.js b/static/index-d31a53fe.js
similarity index 79%
rename from static/index-e706c545.js
rename to static/index-d31a53fe.js
index 3eacf8da..d77fd73b 100644
--- a/static/index-e706c545.js
+++ b/static/index-d31a53fe.js
@@ -1 +1 @@
-import{h as e}from"./index-60500aa4.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{h as e}from"./index-e5ab5012.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-d4ce1ec1.js b/static/index-d4ce1ec1.js
new file mode 100644
index 00000000..7d8343ff
--- /dev/null
+++ b/static/index-d4ce1ec1.js
@@ -0,0 +1 @@
+import{_}from"./index-e5ab5012.js";import{ah as e,l as s,m as i,p as l,T as o,V as t,P as n}from"./vue-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.js";const p={},d={class:"app-container"};function m(u,f){const c=e("el-link"),a=e("router-view"),r=e("el-card");return s(),i("div",d,[l("h4",null,[o(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: "),t(c,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:n(()=>[o(" src/config/route.ts ")]),_:1})]),t(r,{header:"二级路由 - menu1"},{default:n(()=>[t(a)]),_:1})])}const g=_(p,[["render",m],["__scopeId","data-v-6b5ec9cb"]]);export{g as default};
diff --git a/static/index-60500aa4.js b/static/index-e5ab5012.js
similarity index 68%
rename from static/index-60500aa4.js
rename to static/index-e5ab5012.js
index 8e929524..0c9c59cd 100644
--- a/static/index-60500aa4.js
+++ b/static/index-e5ab5012.js
@@ -1,4 +1,4 @@
-var xt=Object.defineProperty;var Pt=(e,t,n)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>(Pt(e,typeof t!="symbol"?t+"":t,n),n);import{r as P,w as Xe,H as Ye,ag as kt,ah as De,O as Dt,P as Nt,u as Bt,l as Ze,V as Lt,az as Ft,aA as It,aB as Vt,aC as ee,b as Qe,z as Mt,e as Ut,m as zt,p as Ht,at as jt}from"./vue-ec167982.js";import{E as qt,b as K,c as $t,m as Jt,e as Wt,g as Gt,i as Kt,f as Xt}from"./element-d7298f5f.js";import{V as ve,a as Yt}from"./vxe-141ad77e.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const M="v3-admin-vite";class _{}F(_,"TOKEN",`${M}-token-key`),F(_,"CONFIG_LAYOUT",`${M}-config-layout-key`),F(_,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),F(_,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),F(_,"VISITED_VIEWS",`${M}-visited-views-key`),F(_,"CACHED_VIEWS",`${M}-cached-views-key`);const Zt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Qt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),vs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},en=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),tn=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},nn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},rn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},sn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},on=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",an=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],be=P(en()||et),cn=e=>{be.value=e},un=e=>{document.documentElement.className=e},ln=()=>{Xe(()=>{const e=be.value;un(e),tn(e)})};function dn(){return{themeList:an,activeThemeName:be,initTheme:ln,setTheme:cn}}var fn={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 mn=Ye({__name:"App",setup(e){const{initTheme:t}=dn();return t(),qt({title:"Hello",type:"success",message:kt("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),Dt(o,{locale:Bt(fn)},{default:Nt(()=>[Lt(s)]),_:1},8,["locale"])}}}),te=Ft(),pn="modulepreload",hn=function(e){return"/v3-admin-vite/"+e},Ne={},S=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=hn(o),o in Ne)return;Ne[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===o&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const p=document.createElement("link");if(p.rel=i?"stylesheet":pn,i||(p.as="script",p.crossOrigin=""),p.href=o,document.head.appendChild(p),i)return new Promise((u,f)=>{p.addEventListener("load",u),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},En=It("/v3-admin-vite/"),tt={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>S(()=>import("./index-9f030b02.js"),["static/index-9f030b02.js","static/vue-ec167982.js","static/useWatermark-641078a8.js","static/element-d7298f5f.js","static/index.vue_vue_type_script_setup_true_lang-b07736e1.js","static/vxe-141ad77e.js","static/index-8bc27c5f.css"]),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>S(()=>import("./index-51d626fd.js"),["static/index-51d626fd.js","static/vue-ec167982.js"])}]},{path:"/403",component:()=>S(()=>import("./403-b6bf8cb7.js"),["static/403-b6bf8cb7.js","static/ErrorPageLayout-8748c1a0.js","static/vue-ec167982.js","static/ErrorPageLayout-155a3ef2.css","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),meta:{hidden:!0}},{path:"/404",component:()=>S(()=>import("./404-863e7306.js"),["static/404-863e7306.js","static/ErrorPageLayout-8748c1a0.js","static/vue-ec167982.js","static/ErrorPageLayout-155a3ef2.css","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>S(()=>import("./index-f3884341.js"),["static/index-f3884341.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/index.vue_vue_type_script_setup_true_lang-b07736e1.js","static/vxe-141ad77e.js","static/index-1adffdf4.css"]),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>S(()=>import("./index-f792e480.js"),["static/index-f792e480.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/index-d3ac1821.css"]),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>S(()=>import("./index-1d04113f.js"),["static/index-1d04113f.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),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:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>S(()=>import("./index-5ec44631.js"),["static/index-5ec44631.js","static/index-e706c545.js","static/element-d7298f5f.js","static/vue-ec167982.js","static/vxe-141ad77e.js","static/index-c475a2b5.css"]),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>S(()=>import("./index-97081a64.js"),["static/index-97081a64.js","static/index-e706c545.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>S(()=>import("./index-eb20fbc5.js"),["static/index-eb20fbc5.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>S(()=>import("./index-d4006cfe.js"),["static/index-d4006cfe.js","static/vue-ec167982.js"]),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>S(()=>import("./index-c50109df.js"),["static/index-c50109df.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>S(()=>import("./index-6b50c20f.js"),["static/index-6b50c20f.js","static/vue-ec167982.js"]),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>S(()=>import("./index-abdc549f.js"),["static/index-abdc549f.js","static/vue-ec167982.js"]),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>S(()=>import("./index-f796f70a.js"),["static/index-f796f70a.js","static/vue-ec167982.js"]),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>S(()=>import("./index-677b7957.js"),["static/index-677b7957.js","static/vue-ec167982.js"]),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>S(()=>import("./use-fetch-select-b8a9e005.js"),["static/use-fetch-select-b8a9e005.js","static/vue-ec167982.js"]),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>S(()=>import("./use-fullscreen-loading-32f37aee.js"),["static/use-fullscreen-loading-32f37aee.js","static/element-d7298f5f.js","static/vue-ec167982.js"]),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>S(()=>import("./use-watermark-30de520f.js"),["static/use-watermark-30de520f.js","static/useWatermark-641078a8.js","static/element-d7298f5f.js","static/vue-ec167982.js","static/vxe-141ad77e.js","static/use-watermark-e7da1663.css"]),name:"UseWatermark",meta:{title:"useWatermark"}}]}],gn=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>S(()=>import("./page-651fd229.js"),["static/page-651fd229.js","static/vue-ec167982.js","static/SwitchRoles-8e961b35.js","static/SwitchRoles-47de59b3.css","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/page-52a84664.css"]),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>S(()=>import("./directive-9201e298.js"),["static/directive-9201e298.js","static/SwitchRoles-8e961b35.js","static/vue-ec167982.js","static/SwitchRoles-47de59b3.css","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/directive-7c8db414.css"]),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],D=Vt({history:En,routes:nt});function Be(){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 yn=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0},rt=(e,t)=>{const n=[];return e.forEach(r=>{const s={...r};yn(t,s)&&(s.children&&(s.children=rt(s.children,t)),n.push(s))}),n},st=ee("permission",()=>{const e=P([]),t=P([]);return{routes:e,dynamicRoutes:t,setRoutes:r=>{const s=rt(gn,r);e.value=nt.concat(s),t.value=s}}});function wn(){return st(te)}const vn={layoutMode:"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},bn={...vn,...Zt()},ot=ee("settings",()=>{const e={};for(const[n,r]of Object.entries(bn)){const s=P(r);e[n]=s,Qe(s,()=>{const o=t();Qt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),it=ee("tags-view",()=>{const{cacheTagsView:e}=ot(),t=P(e?nn():[]),n=P(e?sn():[]);return Xe(()=>{rn(t.value),on(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:f=>{const E=t.value.findIndex(y=>y.path===f.path);E!==-1?t.value[E].fullPath!==f.fullPath&&(t.value[E]={...f}):t.value.push({...f})},addCachedView:f=>{var E;typeof f.name=="string"&&(n.value.includes(f.name)||(E=f.meta)!=null&&E.keepAlive&&n.value.push(f.name))},delVisitedView:f=>{const E=t.value.findIndex(y=>y.path===f.path);E!==-1&&t.value.splice(E,1)},delCachedView:f=>{if(typeof f.name!="string")return;const E=n.value.indexOf(f.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:f=>{t.value=t.value.filter(E=>{var y;return((y=E.meta)==null?void 0:y.affix)||E.path===f.path})},delOthersCachedViews:f=>{if(typeof f.name!="string")return;const E=n.value.indexOf(f.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(f=>{var E;return(E=f.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function Sn(){return it(te)}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()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var m in i)i[m]&&(l+="; "+m,i[m]!==!0&&(l+="="+i[m].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;lSe.get(_.TOKEN),Le=e=>{Se.set(_.TOKEN,e)},Fe=()=>{Se.remove(_.TOKEN)};function at(e,t){return function(){return e.apply(t,arguments)}}const{toString:An}=Object.prototype,{getPrototypeOf:Ae}=Object,ne=(e=>t=>{const n=An.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>ne(t)===e),re=e=>t=>typeof t===e,{isArray:H}=Array,q=re("undefined");function Tn(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ct=k("ArrayBuffer");function Rn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ct(e.buffer),t}const On=re("string"),R=re("function"),ut=re("number"),se=e=>e!==null&&typeof e=="object",Cn=e=>e===!0||e===!1,X=e=>{if(ne(e)!=="object")return!1;const t=Ae(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xn=k("Date"),Pn=k("File"),kn=k("Blob"),Dn=k("FileList"),Nn=e=>se(e)&&R(e.pipe),Bn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=ne(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Ln=k("URLSearchParams"),Fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const dt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ft=e=>!q(e)&&e!==dt;function fe(){const{caseless:e}=ft(this)&&this||{},t={},n=(r,s)=>{const o=e&<(t,s)||s;X(t[o])&&X(r)?t[o]=fe(t[o],r):X(r)?t[o]=fe({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r($(t,(s,o)=>{n&&R(s)?e[o]=at(s,n):e[o]=s},{allOwnKeys:r}),e),Vn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mn=(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)},Un=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Ae(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zn=(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},Hn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!ut(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ae(Uint8Array)),qn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},$n=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jn=k("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gn=k("RegExp"),mt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Kn=e=>{mt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(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+"'")})}})},Xn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Yn=()=>{},Zn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ae="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",pt={DIGIT:Ve,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+Ve},Qn=(e=16,t=pt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function er(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tr=e=>{const t=new Array(10),n=(r,s)=>{if(se(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return $(r,(i,l)=>{const m=n(i,s+1);!q(m)&&(o[l]=m)}),t[s]=void 0,o}}return r};return n(e,0)},nr=k("AsyncFunction"),rr=e=>e&&(se(e)||R(e))&&R(e.then)&&R(e.catch),c={isArray:H,isArrayBuffer:ct,isBuffer:Tn,isFormData:Bn,isArrayBufferView:Rn,isString:On,isNumber:ut,isBoolean:Cn,isObject:se,isPlainObject:X,isUndefined:q,isDate:xn,isFile:Pn,isBlob:kn,isRegExp:Gn,isFunction:R,isStream:Nn,isURLSearchParams:Ln,isTypedArray:jn,isFileList:Dn,forEach:$,merge:fe,extend:In,trim:Fn,stripBOM:Vn,inherits:Mn,toFlatObject:Un,kindOf:ne,kindOfTest:k,endsWith:zn,toArray:Hn,forEachEntry:qn,matchAll:$n,isHTMLForm:Jn,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:mt,freezeMethods:Kn,toObjectSet:Xn,toCamelCase:Wn,noop:Yn,toFiniteNumber:Zn,findKey:lt,global:dt,isContextDefined:ft,ALPHABET:pt,generateString:Qn,isSpecCompliantForm:er,toJSONObject:tr,isAsyncFn:nr,isThenable:rr};function g(e,t,n,r,s){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),s&&(this.response=s)}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 ht=g.prototype,Et={};["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=>{Et[e]={value:e}});Object.defineProperties(g,Et);Object.defineProperty(ht,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(ht);return c.toFlatObject(e,i,function(m){return m!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const sr=null;function me(e){return c.isPlainObject(e)||c.isArray(e)}function gt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(s,o){return s=gt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function or(e){return c.isArray(e)&&!e.some(me)}const ir=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function oe(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,h){return!c.isUndefined(h[d])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function p(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!m&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?m&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function u(a,d,h){let w=a;if(a&&!h&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&or(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(w=c.toArray(a)))return d=gt(d),w.forEach(function(T,v){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Me([d],v,o):i===null?d:d+"[]",p(T))}),!1}return me(a)?!0:(t.append(Me(h,d,o),p(a)),!1)}const f=[],E=Object.assign(ir,{defaultVisitor:u,convertValue:p,isVisitable:me});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,b){(!(c.isUndefined(w)||w===null)&&s.call(t,w,c.isString(b)?b.trim():b,d,E))===!0&&y(w,d?d.concat(b):[b])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Te(e,t){this._pairs=[],e&&oe(e,this,t)}const yt=Te.prototype;yt.append=function(t,n){this._pairs.push([t,n])};yt.toString=function(t){const n=t?function(r){return t.call(this,r,Ue)}:Ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ar(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wt(e,t,n){if(!t)return e;const r=n&&n.encode||ar,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Te(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class cr{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 ze=cr,vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ur=typeof URLSearchParams<"u"?URLSearchParams:Te,lr=typeof FormData<"u"?FormData:null,dr=typeof Blob<"u"?Blob:null,fr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),mr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),x={isBrowser:!0,classes:{URLSearchParams:ur,FormData:lr,Blob:dr},isStandardBrowserEnv:fr,isStandardBrowserWebWorkerEnv:mr,protocols:["http","https","file","blob","url","data"]};function pr(e,t){return oe(e,new x.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return x.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function hr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Er(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,m?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Er(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(hr(r),s,n,0)}),n}return null}function gr(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 Re={transitional:vt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s&&s?JSON.stringify(bt(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(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return oe(l?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),gr(t)):t}],transformResponse:[function(t){const n=this.transitional||Re.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;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:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Re.headers[e]={}});const Oe=Re,yr=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"]),wr=e=>{const t={};let n,r,s;return e&&e.split(`
+var xt=Object.defineProperty;var Pt=(e,t,n)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var F=(e,t,n)=>(Pt(e,typeof t!="symbol"?t+"":t,n),n);import{r as P,w as Xe,H as Ye,ag as kt,ah as De,O as Dt,P as Nt,u as Bt,l as Ze,V as Lt,az as Ft,aA as It,aB as Vt,aC as ee,b as Qe,z as Mt,e as Ut,m as zt,p as Ht,at as jt}from"./vue-ec167982.js";import{E as qt,b as K,c as $t,m as Jt,e as Wt,g as Gt,i as Kt,f as Xt}from"./element-d7298f5f.js";import{V as ve,a as Yt}from"./vxe-141ad77e.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const M="v3-admin-vite";class _{}F(_,"TOKEN",`${M}-token-key`),F(_,"CONFIG_LAYOUT",`${M}-config-layout-key`),F(_,"SIDEBAR_STATUS",`${M}-sidebar-status-key`),F(_,"ACTIVE_THEME_NAME",`${M}-active-theme-name-key`),F(_,"VISITED_VIEWS",`${M}-visited-views-key`),F(_,"CACHED_VIEWS",`${M}-cached-views-key`);const Zt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Qt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),vs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},en=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),tn=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},nn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},rn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},sn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},on=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",an=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],be=P(en()||et),cn=e=>{be.value=e},un=e=>{document.documentElement.className=e},ln=()=>{Xe(()=>{const e=be.value;un(e),tn(e)})};function dn(){return{themeList:an,activeThemeName:be,initTheme:ln,setTheme:cn}}var fn={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 mn=Ye({__name:"App",setup(e){const{initTheme:t}=dn();return t(),qt({title:"Hello",type:"success",message:kt("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),Dt(o,{locale:Bt(fn)},{default:Nt(()=>[Lt(s)]),_:1},8,["locale"])}}}),te=Ft(),pn="modulepreload",hn=function(e){return"/v3-admin-vite/"+e},Ne={},S=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=hn(o),o in Ne)return;Ne[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===o&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const p=document.createElement("link");if(p.rel=i?"stylesheet":pn,i||(p.as="script",p.crossOrigin=""),p.href=o,document.head.appendChild(p),i)return new Promise((u,f)=>{p.addEventListener("load",u),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},En=It("/v3-admin-vite/"),tt={async:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>S(()=>import("./index-7710d4af.js"),["static/index-7710d4af.js","static/vue-ec167982.js","static/useWatermark-641078a8.js","static/element-d7298f5f.js","static/index.vue_vue_type_script_setup_true_lang-c3802ea4.js","static/vxe-141ad77e.js","static/index-8bc27c5f.css"]),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:"/redirect/:path(.*)",component:()=>S(()=>import("./index-51d626fd.js"),["static/index-51d626fd.js","static/vue-ec167982.js"])}]},{path:"/403",component:()=>S(()=>import("./403-75144aa1.js"),["static/403-75144aa1.js","static/ErrorPageLayout-f5860d11.js","static/vue-ec167982.js","static/ErrorPageLayout-155a3ef2.css","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),meta:{hidden:!0}},{path:"/404",component:()=>S(()=>import("./404-de00dcf7.js"),["static/404-de00dcf7.js","static/ErrorPageLayout-f5860d11.js","static/vue-ec167982.js","static/ErrorPageLayout-155a3ef2.css","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>S(()=>import("./index-2e851991.js"),["static/index-2e851991.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/index.vue_vue_type_script_setup_true_lang-c3802ea4.js","static/vxe-141ad77e.js","static/index-1adffdf4.css"]),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>S(()=>import("./index-ef31847c.js"),["static/index-ef31847c.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/index-d3ac1821.css"]),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>S(()=>import("./index-0adafffd.js"),["static/index-0adafffd.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),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:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>S(()=>import("./index-4fd067ab.js"),["static/index-4fd067ab.js","static/index-d31a53fe.js","static/element-d7298f5f.js","static/vue-ec167982.js","static/vxe-141ad77e.js","static/index-c475a2b5.css"]),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>S(()=>import("./index-0668ea34.js"),["static/index-0668ea34.js","static/index-d31a53fe.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>S(()=>import("./index-d4ce1ec1.js"),["static/index-d4ce1ec1.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/index-72807629.css"]),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>S(()=>import("./index-d4006cfe.js"),["static/index-d4006cfe.js","static/vue-ec167982.js"]),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>S(()=>import("./index-97ede5c8.js"),["static/index-97ede5c8.js","static/vue-ec167982.js","static/element-d7298f5f.js","static/vxe-141ad77e.js"]),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>S(()=>import("./index-6b50c20f.js"),["static/index-6b50c20f.js","static/vue-ec167982.js"]),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>S(()=>import("./index-abdc549f.js"),["static/index-abdc549f.js","static/vue-ec167982.js"]),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>S(()=>import("./index-f796f70a.js"),["static/index-f796f70a.js","static/vue-ec167982.js"]),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>S(()=>import("./index-677b7957.js"),["static/index-677b7957.js","static/vue-ec167982.js"]),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook 示例",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>S(()=>import("./use-fetch-select-b8a9e005.js"),["static/use-fetch-select-b8a9e005.js","static/vue-ec167982.js"]),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>S(()=>import("./use-fullscreen-loading-32f37aee.js"),["static/use-fullscreen-loading-32f37aee.js","static/element-d7298f5f.js","static/vue-ec167982.js"]),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>S(()=>import("./use-watermark-2b515d02.js"),["static/use-watermark-2b515d02.js","static/useWatermark-641078a8.js","static/element-d7298f5f.js","static/vue-ec167982.js","static/vxe-141ad77e.js","static/use-watermark-e7da1663.css"]),name:"UseWatermark",meta:{title:"useWatermark"}}]}],gn=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限管理",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>S(()=>import("./page-8fc8749b.js"),["static/page-8fc8749b.js","static/vue-ec167982.js","static/SwitchRoles-79b8f853.js","static/SwitchRoles-47de59b3.css","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/page-52a84664.css"]),name:"PagePermission",meta:{title:"页面权限",roles:["admin"]}},{path:"directive",component:()=>S(()=>import("./directive-a26b3ef2.js"),["static/directive-a26b3ef2.js","static/SwitchRoles-79b8f853.js","static/vue-ec167982.js","static/SwitchRoles-47de59b3.css","static/element-d7298f5f.js","static/vxe-141ad77e.js","static/directive-7c8db414.css"]),name:"DirectivePermission",meta:{title:"指令权限"}}]},{path:"/:pathMatch(.*)*",redirect:"/404",name:"ErrorPage",meta:{hidden:!0}}],D=Vt({history:En,routes:nt});function Be(){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 yn=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0},rt=(e,t)=>{const n=[];return e.forEach(r=>{const s={...r};yn(t,s)&&(s.children&&(s.children=rt(s.children,t)),n.push(s))}),n},st=ee("permission",()=>{const e=P([]),t=P([]);return{routes:e,dynamicRoutes:t,setRoutes:r=>{const s=rt(gn,r);e.value=nt.concat(s),t.value=s}}});function wn(){return st(te)}const vn={layoutMode:"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},bn={...vn,...Zt()},ot=ee("settings",()=>{const e={};for(const[n,r]of Object.entries(bn)){const s=P(r);e[n]=s,Qe(s,()=>{const o=t();Qt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),it=ee("tags-view",()=>{const{cacheTagsView:e}=ot(),t=P(e?nn():[]),n=P(e?sn():[]);return Xe(()=>{rn(t.value),on(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:f=>{const E=t.value.findIndex(y=>y.path===f.path);E!==-1?t.value[E].fullPath!==f.fullPath&&(t.value[E]={...f}):t.value.push({...f})},addCachedView:f=>{var E;typeof f.name=="string"&&(n.value.includes(f.name)||(E=f.meta)!=null&&E.keepAlive&&n.value.push(f.name))},delVisitedView:f=>{const E=t.value.findIndex(y=>y.path===f.path);E!==-1&&t.value.splice(E,1)},delCachedView:f=>{if(typeof f.name!="string")return;const E=n.value.indexOf(f.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:f=>{t.value=t.value.filter(E=>{var y;return((y=E.meta)==null?void 0:y.affix)||E.path===f.path})},delOthersCachedViews:f=>{if(typeof f.name!="string")return;const E=n.value.indexOf(f.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(f=>{var E;return(E=f.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function Sn(){return it(te)}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()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var m in i)i[m]&&(l+="; "+m,i[m]!==!0&&(l+="="+i[m].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;lSe.get(_.TOKEN),Le=e=>{Se.set(_.TOKEN,e)},Fe=()=>{Se.remove(_.TOKEN)};function at(e,t){return function(){return e.apply(t,arguments)}}const{toString:An}=Object.prototype,{getPrototypeOf:Ae}=Object,ne=(e=>t=>{const n=An.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>ne(t)===e),re=e=>t=>typeof t===e,{isArray:H}=Array,q=re("undefined");function Tn(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ct=k("ArrayBuffer");function Rn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ct(e.buffer),t}const On=re("string"),R=re("function"),ut=re("number"),se=e=>e!==null&&typeof e=="object",Cn=e=>e===!0||e===!1,X=e=>{if(ne(e)!=="object")return!1;const t=Ae(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xn=k("Date"),Pn=k("File"),kn=k("Blob"),Dn=k("FileList"),Nn=e=>se(e)&&R(e.pipe),Bn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=ne(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Ln=k("URLSearchParams"),Fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const dt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ft=e=>!q(e)&&e!==dt;function fe(){const{caseless:e}=ft(this)&&this||{},t={},n=(r,s)=>{const o=e&<(t,s)||s;X(t[o])&&X(r)?t[o]=fe(t[o],r):X(r)?t[o]=fe({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r($(t,(s,o)=>{n&&R(s)?e[o]=at(s,n):e[o]=s},{allOwnKeys:r}),e),Vn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mn=(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)},Un=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Ae(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zn=(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},Hn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!ut(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ae(Uint8Array)),qn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},$n=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jn=k("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gn=k("RegExp"),mt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Kn=e=>{mt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(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+"'")})}})},Xn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Yn=()=>{},Zn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ae="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",pt={DIGIT:Ve,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+Ve},Qn=(e=16,t=pt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function er(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tr=e=>{const t=new Array(10),n=(r,s)=>{if(se(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return $(r,(i,l)=>{const m=n(i,s+1);!q(m)&&(o[l]=m)}),t[s]=void 0,o}}return r};return n(e,0)},nr=k("AsyncFunction"),rr=e=>e&&(se(e)||R(e))&&R(e.then)&&R(e.catch),c={isArray:H,isArrayBuffer:ct,isBuffer:Tn,isFormData:Bn,isArrayBufferView:Rn,isString:On,isNumber:ut,isBoolean:Cn,isObject:se,isPlainObject:X,isUndefined:q,isDate:xn,isFile:Pn,isBlob:kn,isRegExp:Gn,isFunction:R,isStream:Nn,isURLSearchParams:Ln,isTypedArray:jn,isFileList:Dn,forEach:$,merge:fe,extend:In,trim:Fn,stripBOM:Vn,inherits:Mn,toFlatObject:Un,kindOf:ne,kindOfTest:k,endsWith:zn,toArray:Hn,forEachEntry:qn,matchAll:$n,isHTMLForm:Jn,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:mt,freezeMethods:Kn,toObjectSet:Xn,toCamelCase:Wn,noop:Yn,toFiniteNumber:Zn,findKey:lt,global:dt,isContextDefined:ft,ALPHABET:pt,generateString:Qn,isSpecCompliantForm:er,toJSONObject:tr,isAsyncFn:nr,isThenable:rr};function g(e,t,n,r,s){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),s&&(this.response=s)}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 ht=g.prototype,Et={};["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=>{Et[e]={value:e}});Object.defineProperties(g,Et);Object.defineProperty(ht,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(ht);return c.toFlatObject(e,i,function(m){return m!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const sr=null;function me(e){return c.isPlainObject(e)||c.isArray(e)}function gt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(s,o){return s=gt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function or(e){return c.isArray(e)&&!e.some(me)}const ir=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function oe(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,h){return!c.isUndefined(h[d])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function p(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!m&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?m&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function u(a,d,h){let w=a;if(a&&!h&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&or(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(w=c.toArray(a)))return d=gt(d),w.forEach(function(T,v){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Me([d],v,o):i===null?d:d+"[]",p(T))}),!1}return me(a)?!0:(t.append(Me(h,d,o),p(a)),!1)}const f=[],E=Object.assign(ir,{defaultVisitor:u,convertValue:p,isVisitable:me});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,b){(!(c.isUndefined(w)||w===null)&&s.call(t,w,c.isString(b)?b.trim():b,d,E))===!0&&y(w,d?d.concat(b):[b])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Te(e,t){this._pairs=[],e&&oe(e,this,t)}const yt=Te.prototype;yt.append=function(t,n){this._pairs.push([t,n])};yt.toString=function(t){const n=t?function(r){return t.call(this,r,Ue)}:Ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ar(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wt(e,t,n){if(!t)return e;const r=n&&n.encode||ar,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Te(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class cr{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 ze=cr,vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ur=typeof URLSearchParams<"u"?URLSearchParams:Te,lr=typeof FormData<"u"?FormData:null,dr=typeof Blob<"u"?Blob:null,fr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),mr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),x={isBrowser:!0,classes:{URLSearchParams:ur,FormData:lr,Blob:dr},isStandardBrowserEnv:fr,isStandardBrowserWebWorkerEnv:mr,protocols:["http","https","file","blob","url","data"]};function pr(e,t){return oe(e,new x.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return x.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function hr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Er(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,m?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Er(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(hr(r),s,n,0)}),n}return null}function gr(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 Re={transitional:vt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s&&s?JSON.stringify(bt(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(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return oe(l?{"files[]":t}:t,m&&new m,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),gr(t)):t}],transformResponse:[function(t){const n=this.transitional||Re.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;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:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Re.headers[e]={}});const Oe=Re,yr=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"]),wr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&yr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},He=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 vr(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 br=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ce(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Sr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _r(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ie{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,m,p){const u=j(m);if(!u)throw new Error("header name must be a non-empty string");const f=c.findKey(s,u);(!f||s[f]===void 0||p===!0||p===void 0&&s[f]!==!1)&&(s[f||m]=Y(l))}const i=(l,m)=>c.forEach(l,(p,u)=>o(p,u,m));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!br(t)?i(wr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=j(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return vr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);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||ce(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const l=c.findKey(r,i);l&&(!n||ce(r,r[l],l,n))&&(delete r[l],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ce(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=Y(s),delete n[o];return}const l=t?Sr(o):String(o).trim();l!==o&&delete n[o],n[l]=Y(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=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(s=>r.set(s)),r}static accessor(t){const r=(this[He]=this[He]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=j(i);r[l]||(_r(s,i),r[l]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(ie);const N=ie;function ue(e,t){const n=this||Oe,r=t||n,s=N.from(r.headers);let o=r.data;return c.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function St(e){return!!(e&&e.__CANCEL__)}function J(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(J,g,{__CANCEL__:!0});function Ar(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 Tr=x.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,l){const m=[];m.push(n+"="+encodeURIComponent(r)),c.isNumber(s)&&m.push("expires="+new Date(s).toGMTString()),c.isString(o)&&m.push("path="+o),c.isString(i)&&m.push("domain="+i),l===!0&&m.push("secure"),document.cookie=m.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 Rr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Or(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function _t(e,t){return e&&!Rr(t)?Or(e,t):t}const Cr=x.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;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=s(window.location.href),function(i){const l=c.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function xr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(m){const p=Date.now(),u=r[o];i||(i=p),n[s]=m,r[s]=p;let f=o,E=0;for(;f!==s;)E+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),p-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,m=r(l),p=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:m||void 0,estimated:m&&i&&p?(i-o)/m:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const kr=typeof XMLHttpRequest<"u",Dr=kr&&function(e){return new Promise(function(n,r){let s=e.data;const o=N.from(e.headers).normalize(),i=e.responseType;let l;function m(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let p;c.isFormData(s)&&(x.isStandardBrowserEnv||x.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?c.isString(p=o.getContentType())&&o.setContentType(p.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(a+":"+d))}const f=_t(e.baseURL,e.url);u.open(e.method.toUpperCase(),wt(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function E(){if(!u)return;const a=N.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:a,config:e,request:u};Ar(function(b){n(b),m()},function(b){r(b),m()},h),u=null}if("onloadend"in u?u.onloadend=E:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(E)},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 d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||vt;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new g(d,h.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,u)),u=null},x.isStandardBrowserEnv){const a=(e.withCredentials||Cr(f))&&e.xsrfCookieName&&Tr.read(e.xsrfCookieName);a&&o.set(e.xsrfHeaderName,a)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&c.forEach(o.toJSON(),function(d,h){u.setRequestHeader(h,d)}),c.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",je(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",je(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=a=>{u&&(r(!a||a.type?new J(null,e,u):a),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=xr(f);if(y&&x.protocols.indexOf(y)===-1){r(new g("Unsupported protocol "+y+":",g.ERR_BAD_REQUEST,e));return}u.send(s||null)})},pe={http:sr,xhr:Dr};c.forEach(pe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qe=e=>`- ${e}`,Nr=e=>c.isFunction(e)||e===null||e===!1,At={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${l} `+(m===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
`+o.map(qe).join(`
diff --git a/static/index-eb20fbc5.js b/static/index-eb20fbc5.js
deleted file mode 100644
index ad4e6fed..00000000
--- a/static/index-eb20fbc5.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as n}from"./index-60500aa4.js";import{ah as e,l as c,m as a,V as o,P as s}from"./vue-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-f792e480.js b/static/index-ef31847c.js
similarity index 91%
rename from static/index-f792e480.js
rename to static/index-ef31847c.js
index 8c15d3cb..133121dd 100644
--- a/static/index-f792e480.js
+++ b/static/index-ef31847c.js
@@ -1 +1 @@
-import{_ as c,d as a}from"./index-60500aa4.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-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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-e5ab5012.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-ec167982.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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.vue_vue_type_script_setup_true_lang-b07736e1.js b/static/index.vue_vue_type_script_setup_true_lang-c3802ea4.js
similarity index 92%
rename from static/index.vue_vue_type_script_setup_true_lang-b07736e1.js
rename to static/index.vue_vue_type_script_setup_true_lang-c3802ea4.js
index bdc28eb6..ba6a2626 100644
--- a/static/index.vue_vue_type_script_setup_true_lang-b07736e1.js
+++ b/static/index.vue_vue_type_script_setup_true_lang-c3802ea4.js
@@ -1 +1 @@
-import{f as k}from"./index-60500aa4.js";import{A as g}from"./element-d7298f5f.js";import{H as h,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-ec167982.js";const L=h({__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(g))]),_:1})]),_:1})])]),_:1},8,["onCommand"])}}});export{L as _};
+import{f as k}from"./index-e5ab5012.js";import{A as g}from"./element-d7298f5f.js";import{H as h,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-ec167982.js";const L=h({__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(g))]),_:1})]),_:1})])]),_:1},8,["onCommand"])}}});export{L as _};
diff --git a/static/page-651fd229.js b/static/page-8fc8749b.js
similarity index 79%
rename from static/page-651fd229.js
rename to static/page-8fc8749b.js
index b0963747..ecb75a38 100644
--- a/static/page-651fd229.js
+++ b/static/page-8fc8749b.js
@@ -1 +1 @@
-import{H as s,aF as n,ah as _,l as p,m as r,V as e,P as c,T as i}from"./vue-ec167982.js";import{S as l}from"./SwitchRoles-8e961b35.js";import{_ as m}from"./index-60500aa4.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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,aF as n,ah as _,l as p,m as r,V as e,P as c,T as i}from"./vue-ec167982.js";import{S as l}from"./SwitchRoles-79b8f853.js";import{_ as m}from"./index-e5ab5012.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.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};
diff --git a/static/use-watermark-30de520f.js b/static/use-watermark-2b515d02.js
similarity index 92%
rename from static/use-watermark-30de520f.js
rename to static/use-watermark-2b515d02.js
index 993b62bb..fadfa5fa 100644
--- a/static/use-watermark-30de520f.js
+++ b/static/use-watermark-2b515d02.js
@@ -1 +1 @@
-import{u}from"./useWatermark-641078a8.js";import{H as v,r as y,ah as f,l as C,m as b,p as m,V as t,P as a,u as r,T as l,aI as W,aJ as g}from"./vue-ec167982.js";import{_ as x}from"./index-60500aa4.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.js";const w=n=>(W("data-v-dbeea05d"),n=n(),g(),n),I={class:"app-container"},$=w(()=>m("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),V=v({__name:"use-watermark",setup(n){const p=y(null),{setWatermark:c,clearWatermark:i}=u(p),{setWatermark:d,clearWatermark:k}=u();return(B,e)=>{const o=f("el-button"),_=f("el-button-group");return C(),b("div",I,[$,m("div",{ref_key:"localRef",ref:p,class:"local"},null,512),t(_,null,{default:a(()=>[t(o,{type:"primary",onClick:e[0]||(e[0]=s=>r(c)("局部水印",{color:"#409eff"}))},{default:a(()=>[l("创建局部水印")]),_:1}),t(o,{type:"warning",onClick:e[1]||(e[1]=s=>r(c)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(i)},{default:a(()=>[l("清除局部水印")]),_:1},8,["onClick"])]),_:1}),t(_,null,{default:a(()=>[t(o,{type:"primary",onClick:e[2]||(e[2]=s=>r(d)("全局水印",{color:"#409eff"}))},{default:a(()=>[l("创建全局水印")]),_:1}),t(o,{type:"warning",onClick:e[3]||(e[3]=s=>r(d)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(k)},{default:a(()=>[l("清除全局水印")]),_:1},8,["onClick"])]),_:1})])}}});const h=x(V,[["__scopeId","data-v-dbeea05d"]]);export{h as default};
+import{u}from"./useWatermark-641078a8.js";import{H as v,r as y,ah as f,l as C,m as b,p as m,V as t,P as a,u as r,T as l,aI as W,aJ as g}from"./vue-ec167982.js";import{_ as x}from"./index-e5ab5012.js";import"./element-d7298f5f.js";import"./vxe-141ad77e.js";const w=n=>(W("data-v-dbeea05d"),n=n(),g(),n),I={class:"app-container"},$=w(()=>m("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),V=v({__name:"use-watermark",setup(n){const p=y(null),{setWatermark:c,clearWatermark:i}=u(p),{setWatermark:d,clearWatermark:k}=u();return(B,e)=>{const o=f("el-button"),_=f("el-button-group");return C(),b("div",I,[$,m("div",{ref_key:"localRef",ref:p,class:"local"},null,512),t(_,null,{default:a(()=>[t(o,{type:"primary",onClick:e[0]||(e[0]=s=>r(c)("局部水印",{color:"#409eff"}))},{default:a(()=>[l("创建局部水印")]),_:1}),t(o,{type:"warning",onClick:e[1]||(e[1]=s=>r(c)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(i)},{default:a(()=>[l("清除局部水印")]),_:1},8,["onClick"])]),_:1}),t(_,null,{default:a(()=>[t(o,{type:"primary",onClick:e[2]||(e[2]=s=>r(d)("全局水印",{color:"#409eff"}))},{default:a(()=>[l("创建全局水印")]),_:1}),t(o,{type:"warning",onClick:e[3]||(e[3]=s=>r(d)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(k)},{default:a(()=>[l("清除全局水印")]),_:1},8,["onClick"])]),_:1})])}}});const h=x(V,[["__scopeId","data-v-dbeea05d"]]);export{h as default};