Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

Deploying to gh-pages from @ e2f4bb1533dcf3c72f99cf17b01fe91337c5688a 🚀

This commit is contained in:
pany-ang 2022-08-19 09:05:19 +00:00
parent b92c3e8779
commit ce178b736e
42 changed files with 25 additions and 21 deletions

View File

@ -6,7 +6,7 @@
<link rel="icon" href="./favicon.ico" />
<link rel="stylesheet" href="./app-loading.css" />
<title>v3-admin-vite</title>
<script type="module" crossorigin src="./static/index.3930ca04.js"></script>
<script type="module" crossorigin src="./static/index.786e447b.js"></script>
<link rel="stylesheet" href="./static/index.23c0d230.css">
</head>
<body>

1
static/403.066dea3b.js Normal file
View File

@ -0,0 +1 @@
import{_ as s,o as e,b as a,D as d,G as o,z as t}from"./index.786e447b.js";const c={},n=s=>(d("data-v-9e204be3"),s=s(),o(),s),r=[n((()=>t("p",{class:"code"},"403",-1))),n((()=>t("p",{class:"describe"},"你没有权限去该页面",-1)))];const b=s(c,[["render",function(s,d){return e(),a("div",null,r)}],["__scopeId","data-v-9e204be3"]]);export{b as default};

View File

@ -1 +0,0 @@
import{_ as t,o as e,b as n,z as s}from"./index.3930ca04.js";const o={},a=[s("p",{style:{"text-align":"center","font-size":"140px","margin-bottom":"50px"}},"403",-1),s("p",{style:{"text-align":"center","font-size":"40px"}},"你没有权限去该页面",-1)];const r=t(o,[["render",function(t,s){return e(),n("div",null,a)}]]);export{r as default};

1
static/403.fb8d8a02.css Normal file
View File

@ -0,0 +1 @@
.code[data-v-9e204be3]{text-align:center;font-size:140px;margin-bottom:50px}.describe[data-v-9e204be3]{text-align:center;font-size:40px}

View File

@ -1 +0,0 @@
import{_ as t,o as e,b as n,z as s}from"./index.3930ca04.js";const o={},a=[s("p",{style:{"text-align":"center","font-size":"140px","margin-bottom":"50px"}},"404",-1),s("p",{style:{"text-align":"center","font-size":"40px"}},"未找到你想要的页面",-1)];const r=t(o,[["render",function(t,s){return e(),n("div",null,a)}]]);export{r as default};

1
static/404.a9be209a.js Normal file
View File

@ -0,0 +1 @@
import{_ as s,o as a,b as d,D as e,G as o,z as t}from"./index.786e447b.js";const c={},n=s=>(e("data-v-81b8d59f"),s=s(),o(),s),r=[n((()=>t("p",{class:"code"},"404",-1))),n((()=>t("p",{class:"describe"},"未找到你想要的页面",-1)))];const b=s(c,[["render",function(s,e){return a(),d("div",null,r)}],["__scopeId","data-v-81b8d59f"]]);export{b as default};

1
static/404.e13abaac.css Normal file
View File

@ -0,0 +1 @@
.code[data-v-81b8d59f]{text-align:center;font-size:140px;margin-bottom:50px}.describe[data-v-81b8d59f]{text-align:center;font-size:40px}

View File

@ -0,0 +1 @@
import{a,y as e,R as s,j as l,g as o,o as t,b as d,z as n,t as u,u as i,e as r,w as c,D as m,G as b,_ as p}from"./index.786e447b.js";const v={class:"switch-roles"},_=(a=>(m("data-v-572bc9d0"),a=a(),b(),a))((()=>n("span",null,"切换权限:",-1))),g=p(a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:m}){const b=e(),p=s(b.roles[0]);return l(p,(async a=>{await b.changeRoles(a),m("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return t(),d("div",null,[n("div",null,"你的权限:"+u(i(b).roles),1),n("div",v,[_,r(l,{modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=a=>p.value=a)},{default:c((()=>[r(s,{label:"editor"}),r(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-572bc9d0"]]);export{g as S};

View File

@ -0,0 +1 @@
.switch-roles[data-v-572bc9d0]{margin-top:15px;display:flex;align-items:center}

View File

@ -1 +0,0 @@
import{a,y as e,c as s,R as l,j as t,g as o,o as n,b as i,z as u,t as d,u as r,e as m,w as c}from"./index.3930ca04.js";const p={style:{"margin-bottom":"15px"}},g={style:{display:"flex","align-items":"center"}},v=u("span",null,"切换权限:",-1),b=a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:b}){const y=e(),h=s((()=>y.roles)),x=l(h.value[0]);return t(x,(async a=>{await y.changeRoles(a),b("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return n(),i("div",null,[u("div",p,"你的权限:"+d(r(h)),1),u("div",g,[v,m(l,{modelValue:x.value,"onUpdate:modelValue":e[0]||(e[0]=a=>x.value=a)},{default:c((()=>[m(s,{label:"editor"}),m(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}});export{b as _};

View File

@ -1 +0,0 @@
.permission-alert[data-v-20ddcc2b]{width:320px;margin-top:15px;background-color:#f0f9eb;color:#67c23a;padding:8px 16px;border-radius:4px;display:inline-block}.permission-sourceCode[data-v-20ddcc2b]{margin-left:15px}

View File

@ -1 +0,0 @@
import{a1 as e,a as s,i,g as a,a2 as n,o,b as r,e as t,z as l,M as d,w as m,f as c,u as p,A as u,C as f,_}from"./index.3930ca04.js";import{_ as y}from"./SwitchRoles.vue_vue_type_script_setup_true_lang.1c08cc09.js";const v=s=>{if(s&&s instanceof Array&&s.length>0){const i=e().roles,a=s;return i.some((e=>a.includes(e)))}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1},g={class:"app-container"},k={class:"permission-alert"},h=f(" 只有 "),C=f("admin"),b=f("可以看见这个 "),x=f(" v-permission=\"['admin']\" "),z={class:"permission-alert"},P=f(" 只有 "),w=f("editor"),R=f("可以看见这个 "),j=f(" v-permission=\"['editor']\" "),A={class:"permission-alert"},E=f(" 两者 "),I=f("admin"),L=f("和 "),M=f("editor"),S=f("都可以看见这个 "),q=f(" v-permission=\"['admin', 'editor']\" "),B=f(" 在某些情况下,不适合使用 v-permission。例如: Element-Plus 的 el-tab 或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。 "),D=f(" admin 可以看见这个 "),F=f(" v-if=\"checkPermission(['admin'])\" "),G=f(" editor 可以看见这个 "),H=f(" v-if=\"checkPermission(['editor'])\" "),J=f(" 两者 admin 和 editor 都可以看见这个 "),K=f(" v-if=\"checkPermission(['admin', 'editor'])\" "),N=_(s({__name:"directive",setup(e){const s=i({key:1,handleRolesChange:()=>{s.key++}});return(e,i)=>{const f=a("el-tag"),_=a("el-tab-pane"),N=a("el-tabs"),O=n("permission");return o(),r("div",g,[t(y,{onChange:s.handleRolesChange},null,8,["onChange"]),(o(),r("div",{key:s.key,style:{"margin-top":"30px"}},[l("div",null,[d((o(),r("span",k,[h,t(f,null,{default:m((()=>[C])),_:1}),b])),[[O,["admin"]]]),d((o(),c(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[x])),_:1})),[[O,["admin"]]])]),l("div",null,[d((o(),r("span",z,[P,t(f,null,{default:m((()=>[w])),_:1}),R])),[[O,["editor"]]]),d((o(),c(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[j])),_:1})),[[O,["editor"]]])]),l("div",null,[d((o(),r("span",A,[E,t(f,null,{default:m((()=>[I])),_:1}),L,t(f,null,{default:m((()=>[M])),_:1}),S])),[[O,["admin","editor"]]]),d((o(),c(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[q])),_:1})),[[O,["admin","editor"]]])])])),(o(),r("div",{key:"checkPermission"+s.key,style:{"margin-top":"60px"}},[t(f,{type:"info",size:"large"},{default:m((()=>[B])),_:1}),t(N,{type:"border-card",style:{width:"550px","margin-top":"60px"}},{default:m((()=>[p(v)(["admin"])?(o(),c(_,{key:0,label:"admin"},{default:m((()=>[D,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[F])),_:1})])),_:1})):u("",!0),p(v)(["editor"])?(o(),c(_,{key:1,label:"editor"},{default:m((()=>[G,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[H])),_:1})])),_:1})):u("",!0),p(v)(["admin","editor"])?(o(),c(_,{key:2,label:"admin 和 editor"},{default:m((()=>[J,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[K])),_:1})])),_:1})):u("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-20ddcc2b"]]);export{N as default};

View File

@ -0,0 +1 @@
import{a1 as e,a as i,R as s,g as a,a2 as n,o,b as l,e as d,z as r,M as t,w as m,f as c,u as p,A as u,C as f,_ as v}from"./index.786e447b.js";import{S as _}from"./SwitchRoles.47cf2167.js";const y=i=>{if(i&&i instanceof Array&&i.length>0){const s=e().roles,a=i;return s.some((e=>a.includes(e)))}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1},b={class:"app-container"},g={class:"permission-alert"},k=f(" 只有 "),h=f("admin"),z=f("可以看见这个 "),P=f(" v-permission=\"['admin']\" "),j={class:"permission-alert"},w=f(" 只有 "),x=f("editor"),A=f("可以看见这个 "),C=f(" v-permission=\"['editor']\" "),R={class:"permission-alert"},S=f(" 两者 "),D=f("admin"),E=f("和 "),I=f("editor"),L=f("都可以看见这个 "),M=f(" v-permission=\"['admin', 'editor']\" "),q=f(" 在某些情况下,不适合使用 v-permission。例如: Element-Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景。你只能通过手动设置 v-if 来实现。 "),B=f(" admin 可以看见这个 "),F=f(" v-if=\"checkPermission(['admin'])\" "),G=f(" editor 可以看见这个 "),H=f(" v-if=\"checkPermission(['editor'])\" "),J=f(" 两者 admin 和 editor 都可以看见这个 "),K=f(" v-if=\"checkPermission(['admin', 'editor'])\" "),N=v(i({__name:"directive",setup(e){const i=s(1),f=()=>{i.value++};return(e,s)=>{const v=a("el-tag"),N=a("el-tab-pane"),O=a("el-tabs"),Q=n("permission");return o(),l("div",b,[d(_,{onChange:f}),(o(),l("div",{key:i.value,class:"margin-top"},[r("div",null,[t((o(),l("span",g,[k,d(v,null,{default:m((()=>[h])),_:1}),z])),[[Q,["admin"]]]),t((o(),c(v,{class:"permission-code",type:"info",size:"large"},{default:m((()=>[P])),_:1})),[[Q,["admin"]]])]),r("div",null,[t((o(),l("span",j,[w,d(v,null,{default:m((()=>[x])),_:1}),A])),[[Q,["editor"]]]),t((o(),c(v,{class:"permission-code",type:"info",size:"large"},{default:m((()=>[C])),_:1})),[[Q,["editor"]]])]),r("div",null,[t((o(),l("span",R,[S,d(v,null,{default:m((()=>[D])),_:1}),E,d(v,null,{default:m((()=>[I])),_:1}),L])),[[Q,["admin","editor"]]]),t((o(),c(v,{class:"permission-code",type:"info",size:"large"},{default:m((()=>[M])),_:1})),[[Q,["admin","editor"]]])])])),(o(),l("div",{key:"checkPermission"+i.value,class:"margin-top"},[d(v,{type:"info",size:"large"},{default:m((()=>[q])),_:1}),d(O,{type:"border-card",class:"margin-top"},{default:m((()=>[p(y)(["admin"])?(o(),c(N,{key:0,label:"admin"},{default:m((()=>[B,d(v,{class:"permission-code",type:"info"},{default:m((()=>[F])),_:1})])),_:1})):u("",!0),p(y)(["editor"])?(o(),c(N,{key:1,label:"editor"},{default:m((()=>[G,d(v,{class:"permission-code",type:"info"},{default:m((()=>[H])),_:1})])),_:1})):u("",!0),p(y)(["admin","editor"])?(o(),c(N,{key:2,label:"admin 和 editor"},{default:m((()=>[J,d(v,{class:"permission-code",type:"info"},{default:m((()=>[K])),_:1})])),_:1})):u("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-588db394"]]);export{N as default};

View File

@ -0,0 +1 @@
.permission-alert[data-v-588db394]{width:320px;margin-top:15px;background-color:#f0f9eb;color:#67c23a;padding:8px 16px;border-radius:4px;display:inline-block}.permission-code[data-v-588db394]{margin-left:15px}.margin-top[data-v-588db394]{margin-top:30px}

1
static/index.0834e4c5.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o,C as r}from"./index.786e447b.js";const c={},d={class:"app-container"},l=r(" menu 1-1 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[e(c,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as a,b as e,e as s,w as r,g as n,o as t}from"./index.3930ca04.js";const o={class:"app-container"};const c=a({},[["render",function(a,c){const d=n("router-view"),i=n("el-card");return t(),e("div",o,[s(i,{header:"menu 1"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};

View File

@ -1 +0,0 @@
import{a,n as e,b as s,h as r,o as t}from"./index.3930ca04.js";const n=a({__name:"index",setup(a){const{params:n,query:o}=r(),{path:c}=n;return e().replace({path:"/"+c,query:o}).catch((a=>{console.warn(a)})),(a,e)=>(t(),s("div"))}});export{n as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,g as t,o,C as r}from"./index.3930ca04.js";const c={},d={class:"app-container"},l=r(" menu 1-3 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

1
static/index.230bbc17.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o,C as r}from"./index.786e447b.js";const c={},d={class:"app-container"},l=r(" menu 2 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[e(c,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,g as t,o,C as r}from"./index.3930ca04.js";const c={},d={class:"app-container"},l=r(" menu 2 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as t,b as e,o as a,z as o}from"./index.3930ca04.js";const n={},i={"h-full":"","app-container":""},r=[o("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[o("div",{ma:""},[o("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),o("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),o("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[o("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),o("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1)];const s=t(n,[["render",function(t,o){return a(),e("div",i,r)}]]);export{s as default};
import{_ as t,b as e,o as a,z as o}from"./index.786e447b.js";const n={},i={"h-full":"","app-container":""},r=[o("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[o("div",{ma:""},[o("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),o("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),o("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[o("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),o("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1)];const s=t(n,[["render",function(t,o){return a(),e("div",i,r)}]]);export{s as default};

1
static/index.4dca4399.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o,C as r}from"./index.786e447b.js";const c={},d={class:"app-container"},l=r(" menu 1-2-1 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[e(c,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

1
static/index.5860e3ca.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o,C as r}from"./index.786e447b.js";const c={},d={class:"app-container"},l=r(" menu 1-3 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[e(c,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +1 @@
import{a as e,R as a,i as s,b as l,e as r,z as o,w as d,Y as i,g as n,D as t,G as u,o as p,u as m,Z as c,$ as g,a0 as f,p as v,C as x,n as _,y as w,_ as b}from"./index.3930ca04.js";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang.b5516f60.js";const y=""+new URL("logo-text-2.f252b556.png",import.meta.url).href,V={class:"login-container"},z={class:"login-card"},k=(e=>(t("data-v-8686bd8c"),e=e(),u(),e))((()=>o("div",{class:"title"},[o("img",{src:y})],-1))),C={class:"content"},M={class:"show-code"},U=["src"],q=x(" 登 录 "),R=b(e({__name:"index",setup(e){const t=_(),u=a(null),x=a(!1),b=a(""),y=s({username:"admin",password:"12345678",code:"abcd"}),R={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"}]},j=()=>{var e;null==(e=u.value)||e.validate((e=>{if(!e)return!1;x.value=!0,w().login({username:y.username,password:y.password}).then((()=>{t.push({path:"/"})})).catch((()=>{K(),y.password=""})).finally((()=>{x.value=!1}))}))},K=()=>{y.code="",b.value="/api/v1/login/code?"+1e3*Math.random()};return(e,a)=>{const s=n("el-input"),t=n("el-form-item"),_=n("el-button"),w=n("el-form");return p(),l("div",V,[r(h,{class:"theme-switch"}),o("div",z,[k,o("div",C,[r(w,{ref_key:"loginFormRef",ref:u,model:y,rules:R,onKeyup:i(j,["enter"])},{default:d((()=>[r(t,{prop:"username"},{default:d((()=>[r(s,{modelValue:y.username,"onUpdate:modelValue":a[0]||(a[0]=e=>y.username=e),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":m(c),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"password"},{default:d((()=>[r(s,{modelValue:y.password,"onUpdate:modelValue":a[1]||(a[1]=e=>y.password=e),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":m(g),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"code"},{default:d((()=>[r(s,{modelValue:y.code,"onUpdate:modelValue":a[2]||(a[2]=e=>y.code=e),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":m(f),maxlength:"4",size:"large"},null,8,["modelValue","prefix-icon"]),o("span",M,[o("img",{src:b.value,onClick:K},null,8,U)])])),_:1}),r(_,{loading:x.value,type:"primary",size:"large",onClick:v(j,["prevent"])},{default:d((()=>[q])),_:1},8,["loading","onClick"])])),_:1},8,["model","onKeyup"])])])])}}}),[["__scopeId","data-v-8686bd8c"]]);export{R as default};
import{a as e,R as a,i as s,b as l,e as r,z as o,w as d,Y as i,g as n,D as t,G as u,o as p,u as m,Z as c,$ as g,a0 as f,p as v,C as x,n as _,y as w,_ as b}from"./index.786e447b.js";import{_ as h}from"./index.vue_vue_type_script_setup_true_lang.057441d7.js";const y=""+new URL("logo-text-2.f252b556.png",import.meta.url).href,V={class:"login-container"},z={class:"login-card"},k=(e=>(t("data-v-8686bd8c"),e=e(),u(),e))((()=>o("div",{class:"title"},[o("img",{src:y})],-1))),C={class:"content"},M={class:"show-code"},U=["src"],q=x(" 登 录 "),R=b(e({__name:"index",setup(e){const t=_(),u=a(null),x=a(!1),b=a(""),y=s({username:"admin",password:"12345678",code:"abcd"}),R={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"}]},j=()=>{var e;null==(e=u.value)||e.validate((e=>{if(!e)return!1;x.value=!0,w().login({username:y.username,password:y.password}).then((()=>{t.push({path:"/"})})).catch((()=>{K(),y.password=""})).finally((()=>{x.value=!1}))}))},K=()=>{y.code="",b.value="/api/v1/login/code?"+1e3*Math.random()};return(e,a)=>{const s=n("el-input"),t=n("el-form-item"),_=n("el-button"),w=n("el-form");return p(),l("div",V,[r(h,{class:"theme-switch"}),o("div",z,[k,o("div",C,[r(w,{ref_key:"loginFormRef",ref:u,model:y,rules:R,onKeyup:i(j,["enter"])},{default:d((()=>[r(t,{prop:"username"},{default:d((()=>[r(s,{modelValue:y.username,"onUpdate:modelValue":a[0]||(a[0]=e=>y.username=e),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":m(c),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"password"},{default:d((()=>[r(s,{modelValue:y.password,"onUpdate:modelValue":a[1]||(a[1]=e=>y.password=e),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":m(g),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"code"},{default:d((()=>[r(s,{modelValue:y.code,"onUpdate:modelValue":a[2]||(a[2]=e=>y.code=e),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":m(f),maxlength:"4",size:"large"},null,8,["modelValue","prefix-icon"]),o("span",M,[o("img",{src:b.value,onClick:K},null,8,U)])])),_:1}),r(_,{loading:x.value,type:"primary",size:"large",onClick:v(j,["prevent"])},{default:d((()=>[q])),_:1},8,["loading","onClick"])])),_:1},8,["model","onKeyup"])])])])}}}),[["__scopeId","data-v-8686bd8c"]]);export{R as default};

1
static/index.786e447b.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,g as t,o,C as r}from"./index.3930ca04.js";const c={},d={class:"app-container"},l=r(" menu 1-1 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as n,b as a,o as s,a as e,y as r,R as t,f as i,r as o}from"./index.3930ca04.js";const d={class:"app-container"};const c=n({},[["render",function(n,e){return s(),a("div",d,"Admin 权限可见")}]]),u={class:"app-container"};const l=n({},[["render",function(n,e){return s(),a("div",u,"Editor 权限可见")}]]),m=e({__name:"index",setup(n){const a=r(),e=t("admin");return a.roles.includes("admin")||(e.value="editor"),(n,a)=>(s(),i(o("admin"===e.value?c:l)))}});export{m as default};

1
static/index.9da7d915.js Normal file
View File

@ -0,0 +1 @@
import{_ as n,b as a,o as e,a as s,y as r,R as t,f as i,r as o}from"./index.786e447b.js";const d={class:"app-container"};const c=n({},[["render",function(n,s){return e(),a("div",d,"Admin 权限可见")}]]),u={class:"app-container"};const l=n({},[["render",function(n,s){return e(),a("div",u,"Editor 权限可见")}]]),m=s({__name:"index",setup(n){const a=r(),s=t("admin");return a.roles.includes("admin")||(s.value="editor"),(n,a)=>(e(),i(o("admin"===s.value?c:l)))}});export{m as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,g as t,o,C as r}from"./index.3930ca04.js";const c={},d={class:"app-container"},l=r(" menu 1-2-2 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

File diff suppressed because one or more lines are too long

1
static/index.df6e2312.js Normal file
View File

@ -0,0 +1 @@
import{_ as e,b as a,e as s,w as r,g as n,o as t}from"./index.786e447b.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[s(i,{header:"menu 1"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};

1
static/index.e56c0caf.js Normal file
View File

@ -0,0 +1 @@
import{_ as e,b as a,e as s,w as r,g as n,o as t}from"./index.786e447b.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[s(i,{header:"menu 1-2"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};

1
static/index.e66a1a6b.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o,C as r}from"./index.786e447b.js";const c={},d={class:"app-container"},l=r(" menu 1-2-2 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[e(c,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,g as t,o,C as r}from"./index.3930ca04.js";const c={},d={class:"app-container"},l=r(" menu 1-2-1 ");const u=a(c,[["render",function(a,r){const c=t("el-card");return o(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

1
static/index.f846e7b4.js Normal file
View File

@ -0,0 +1 @@
import{a,n as e,b as s,h as r,o as t}from"./index.786e447b.js";const n=a({__name:"index",setup(a){const{params:n,query:p}=r(),{path:o}=n;return e().replace({path:"/"+o,query:p}),(a,e)=>(t(),s("div"))}});export{n as default};

View File

@ -1 +0,0 @@
import{_ as a,b as e,e as s,w as r,g as n,o as t}from"./index.3930ca04.js";const o={class:"app-container"};const c=a({},[["render",function(a,c){const d=n("router-view"),i=n("el-card");return t(),e("div",o,[s(i,{header:"menu 1-2"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};

View File

@ -0,0 +1 @@
import{a as e,x as a,c as t,o as n,f as s,w as l,e as o,b as d,l as m,u as i,F as r,z as u,X as c,g as p,t as f}from"./index.786e447b.js";const _=e({__name:"index",setup(e){const _=a(),b=t((()=>_.themeList)),w=t((()=>_.activeThemeName)),x=e=>{_.setTheme(e)};return(e,a)=>{const t=p("el-icon"),_=p("el-tooltip"),g=p("el-dropdown-item"),h=p("el-dropdown-menu"),k=p("el-dropdown");return n(),s(k,{trigger:"click",onCommand:x},{dropdown:l((()=>[o(h,null,{default:l((()=>[(n(!0),d(r,null,m(i(b),((e,a)=>(n(),s(g,{key:a,disabled:i(w)===e.name,command:e.name},{default:l((()=>[u("span",null,f(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:l((()=>[u("div",null,[o(_,{effect:"dark",content:"主题模式",placement:"bottom"},{default:l((()=>[o(t,{size:20},{default:l((()=>[o(i(c))])),_:1})])),_:1})])])),_:1})}}});export{_};

View File

@ -1 +0,0 @@
import{a as e,x as a,c as t,o as n,f as s,w as l,e as o,b as d,l as m,u as i,F as c,z as r,X as u,g as p,t as f}from"./index.3930ca04.js";const _=e({__name:"index",setup(e){const _=a(),w=t((()=>_.themeList)),b=t((()=>_.activeThemeName)),x=e=>{_.setTheme(e)};return(e,a)=>{const t=p("el-icon"),_=p("el-tooltip"),g=p("el-dropdown-item"),h=p("el-dropdown-menu"),k=p("el-dropdown");return n(),s(k,{trigger:"click",onCommand:x},{dropdown:l((()=>[o(h,null,{default:l((()=>[(n(!0),d(c,null,m(i(w),((e,a)=>(n(),s(g,{key:a,disabled:i(b)===e.name,command:e.name},{default:l((()=>[r("span",null,f(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:l((()=>[r("div",null,[o(_,{effect:"dark",content:"主题模式",placement:"bottom"},{default:l((()=>[o(t,{size:20},{default:l((()=>[o(i(u))])),_:1})])),_:1})])])),_:1})}}});export{_};

1
static/page.3081310b.css Normal file
View File

@ -0,0 +1 @@
.el-tag[data-v-f3386627]{margin-bottom:15px}

1
static/page.3c265b39.js Normal file
View File

@ -0,0 +1 @@
import{a,n as s,g as e,o as t,b as n,e as o,w as p,C as r,_ as c}from"./index.786e447b.js";import{S as i}from"./SwitchRoles.47cf2167.js";const d={class:"app-container"},u=r(" 当前页面只有 admin 权限可见 "),f=c(a({__name:"page",setup(a){const r=s(),c=()=>{r.push({path:"/403"})};return(a,s)=>{const r=e("el-tag");return t(),n("div",d,[o(r,{type:"success",size:"large"},{default:p((()=>[u])),_:1}),o(i,{onChange:c})])}}}),[["__scopeId","data-v-f3386627"]]);export{f as default};

View File

@ -1 +0,0 @@
import{a,n as s,g as e,o as t,b as n,e as c,w as o,C as r}from"./index.3930ca04.js";import{_ as p}from"./SwitchRoles.vue_vue_type_script_setup_true_lang.1c08cc09.js";const u={class:"app-container"},i=r(" 当前页面只有 admin 权限可见 "),_=a({__name:"page",setup(a){const r=s(),_=()=>{r.push({path:"/403"}).catch((a=>{console.warn(a)}))};return(a,s)=>{const r=e("el-tag");return t(),n("div",u,[c(r,{type:"success",size:"large",style:{"margin-bottom":"15px"}},{default:o((()=>[i])),_:1}),c(p,{onChange:_})])}}});export{_ as default};