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 @ 4e2ffa38f5fd586557ecdf69b917127bf0c94a8b 🚀
This commit is contained in:
parent
1d8183a680
commit
44c830fbc5
@ -6,7 +6,7 @@
|
||||
<link rel="icon" href="/v3-admin-vite/favicon.ico" />
|
||||
<link rel="stylesheet" href="/v3-admin-vite/app-loading.css" />
|
||||
<title>V3 Admin Vite</title>
|
||||
<script type="module" crossorigin src="/v3-admin-vite/static/index.2cd28bb9.js"></script>
|
||||
<script type="module" crossorigin src="/v3-admin-vite/static/index.d1db8d67.js"></script>
|
||||
<link rel="stylesheet" href="/v3-admin-vite/static/index.9a486ace.css">
|
||||
</head>
|
||||
<body>
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as s,f as a,y as e,I as r,h as t,w as o,e as d,o as n,z as c}from"./index.2cd28bb9.js";const i={class:"error-page"},l={class:"error-page-svg"};const f=s({},[["render",function(s,f){const p=d("el-button"),u=d("router-link");return n(),a("div",i,[e("div",l,[r(s.$slots,"default",{},void 0,!0)]),t(u,{to:"/"},{default:o((()=>[t(p,{type:"primary"},{default:o((()=>[c("回到首页")])),_:1})])),_:1})])}],["__scopeId","data-v-2fba9562"]]);export{f as E};
|
1
static/ErrorPageLayout.d24c644d.js
Normal file
1
static/ErrorPageLayout.d24c644d.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as s,f as a,y as e,I as r,h as t,w as o,e as d,o as n,z as i}from"./index.d1db8d67.js";const l={class:"error-page"},c={class:"error-page-svg"};const f=s({},[["render",function(s,f){const p=d("el-button"),u=d("router-link");return n(),a("div",l,[e("div",c,[r(s.$slots,"default",{},void 0,!0)]),t(u,{to:"/"},{default:o((()=>[t(p,{type:"primary"},{default:o((()=>[i("回到首页")])),_:1})])),_:1})])}],["__scopeId","data-v-2fba9562"]]);export{f as E};
|
@ -1 +0,0 @@
|
||||
import{b as a,C as e,a as s,m as l,e as o,o as t,f as n,y as d,t as i,j as r,h as u,w as c,G as m,H as p,_ as v}from"./index.2cd28bb9.js";const b={class:"switch-roles"},h=(a=>(m("data-v-21f43ea2"),a=a(),p(),a))((()=>d("span",null,"切换权限:",-1))),_=v(a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:m}){const p=e(),v=s(p.roles[0]);return l(v,(async a=>{await p.changeRoles(a),m("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return t(),n("div",null,[d("div",null,"你的权限:"+i(r(p).roles),1),d("div",b,[h,u(l,{modelValue:v.value,"onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a)},{default:c((()=>[u(s,{label:"editor"}),u(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-21f43ea2"]]);export{_ as S};
|
1
static/SwitchRoles.6fc1a791.js
Normal file
1
static/SwitchRoles.6fc1a791.js
Normal file
@ -0,0 +1 @@
|
||||
import{b as a,C as e,a as s,m as l,e as o,o as t,f as d,y as n,t as i,j as r,h as u,w as c,G as m,H as p,_ as v}from"./index.d1db8d67.js";const h={class:"switch-roles"},_=(a=>(m("data-v-21f43ea2"),a=a(),p(),a))((()=>n("span",null,"切换权限:",-1))),b=v(a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:m}){const p=e(),v=s(p.roles[0]);return l(v,(async a=>{await p.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,"你的权限:"+i(r(p).roles),1),n("div",h,[_,u(l,{modelValue:v.value,"onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a)},{default:c((()=>[u(s,{label:"editor"}),u(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-21f43ea2"]]);export{b as S};
|
@ -1 +1 @@
|
||||
import{al as e,b as i,a as s,e as a,aa as n,o,f as l,h as d,y as r,R as t,z as m,w as c,i as p,j as u,A as f,_ as v}from"./index.2cd28bb9.js";import{S as _}from"./SwitchRoles.0d0c28b1.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={class:"permission-alert"},h={class:"permission-alert"},z=v(i({__name:"directive",setup(e){const i=s(1),v=()=>{i.value++};return(e,s)=>{const z=a("el-tag"),P=a("el-tab-pane"),j=a("el-tabs"),w=n("permission");return o(),l("div",b,[d(_,{onChange:v}),(o(),l("div",{key:i.value,class:"margin-top"},[r("div",null,[t((o(),l("span",g,[m(" 只有 "),d(z,null,{default:c((()=>[m("admin")])),_:1}),m("可以看见这个 ")])),[[w,["admin"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['admin']\" ")])),_:1})),[[w,["admin"]]])]),r("div",null,[t((o(),l("span",k,[m(" 只有 "),d(z,null,{default:c((()=>[m("editor")])),_:1}),m("可以看见这个 ")])),[[w,["editor"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['editor']\" ")])),_:1})),[[w,["editor"]]])]),r("div",null,[t((o(),l("span",h,[m(" 两者 "),d(z,null,{default:c((()=>[m("admin")])),_:1}),m("和 "),d(z,null,{default:c((()=>[m("editor")])),_:1}),m("都可以看见这个 ")])),[[w,["admin","editor"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['admin', 'editor']\" ")])),_:1})),[[w,["admin","editor"]]])])])),(o(),l("div",{key:"checkPermission"+i.value,class:"margin-top"},[d(z,{type:"info",size:"large"},{default:c((()=>[m(" 在某些情况下,不适合使用 v-permission。例如: Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景。你只能通过手动设置 v-if 来实现。 ")])),_:1}),d(j,{type:"border-card",class:"margin-top"},{default:c((()=>[u(y)(["admin"])?(o(),p(P,{key:0,label:"admin"},{default:c((()=>[m(" admin 可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['admin'])\" ")])),_:1})])),_:1})):f("",!0),u(y)(["editor"])?(o(),p(P,{key:1,label:"editor"},{default:c((()=>[m(" editor 可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['editor'])\" ")])),_:1})])),_:1})):f("",!0),u(y)(["admin","editor"])?(o(),p(P,{key:2,label:"admin 和 editor"},{default:c((()=>[m(" 两者 admin 和 editor 都可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['admin', 'editor'])\" ")])),_:1})])),_:1})):f("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-4e49b14c"]]);export{z as default};
|
||||
import{al as e,b as i,a as s,e as a,aa as n,o,f as l,h as d,y as r,R as t,z as m,w as c,i as p,j as u,A as f,_ as v}from"./index.d1db8d67.js";import{S as _}from"./SwitchRoles.6fc1a791.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={class:"permission-alert"},h={class:"permission-alert"},z=v(i({__name:"directive",setup(e){const i=s(1),v=()=>{i.value++};return(e,s)=>{const z=a("el-tag"),P=a("el-tab-pane"),j=a("el-tabs"),w=n("permission");return o(),l("div",b,[d(_,{onChange:v}),(o(),l("div",{key:i.value,class:"margin-top"},[r("div",null,[t((o(),l("span",g,[m(" 只有 "),d(z,null,{default:c((()=>[m("admin")])),_:1}),m("可以看见这个 ")])),[[w,["admin"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['admin']\" ")])),_:1})),[[w,["admin"]]])]),r("div",null,[t((o(),l("span",k,[m(" 只有 "),d(z,null,{default:c((()=>[m("editor")])),_:1}),m("可以看见这个 ")])),[[w,["editor"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['editor']\" ")])),_:1})),[[w,["editor"]]])]),r("div",null,[t((o(),l("span",h,[m(" 两者 "),d(z,null,{default:c((()=>[m("admin")])),_:1}),m("和 "),d(z,null,{default:c((()=>[m("editor")])),_:1}),m("都可以看见这个 ")])),[[w,["admin","editor"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['admin', 'editor']\" ")])),_:1})),[[w,["admin","editor"]]])])])),(o(),l("div",{key:"checkPermission"+i.value,class:"margin-top"},[d(z,{type:"info",size:"large"},{default:c((()=>[m(" 在某些情况下,不适合使用 v-permission。例如: Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景。你只能通过手动设置 v-if 来实现。 ")])),_:1}),d(j,{type:"border-card",class:"margin-top"},{default:c((()=>[u(y)(["admin"])?(o(),p(P,{key:0,label:"admin"},{default:c((()=>[m(" admin 可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['admin'])\" ")])),_:1})])),_:1})):f("",!0),u(y)(["editor"])?(o(),p(P,{key:1,label:"editor"},{default:c((()=>[m(" editor 可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['editor'])\" ")])),_:1})])),_:1})):f("",!0),u(y)(["admin","editor"])?(o(),p(P,{key:2,label:"admin 和 editor"},{default:c((()=>[m(" 两者 admin 和 editor 都可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['admin', 'editor'])\" ")])),_:1})])),_:1})):f("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-4e49b14c"]]);export{z as default};
|
@ -1 +0,0 @@
|
||||
import{_ as n,f as a,o as s,b as e,C as r,a as i,i as t,k as d}from"./index.2cd28bb9.js";const o={class:"app-container"};const c=n({},[["render",function(n,e){return s(),a("div",o,"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=i("admin");return a.roles.includes("admin")||(e.value="editor"),(n,a)=>(s(),t(d("admin"===e.value?c:l)))}});export{m as default};
|
1
static/index.0bc9f1a3.js
Normal file
1
static/index.0bc9f1a3.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as d,z as o}from"./index.d1db8d67.js";const r={class:"app-container"};const c=a({},[["render",function(a,c){const l=t("el-card");return d(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-2-2 ")])),_:1})])}]]);export{c as default};
|
1
static/index.318465b4.js
Normal file
1
static/index.318465b4.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as n,f as a,o as s,b as e,C as r,a as d,i,k as t}from"./index.d1db8d67.js";const o={class:"app-container"};const c=n({},[["render",function(n,e){return s(),a("div",o,"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=d("admin");return a.roles.includes("admin")||(e.value="editor"),(n,a)=>(s(),i(t("admin"===e.value?c:l)))}});export{m as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o,z as r}from"./index.2cd28bb9.js";const c={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return o(),s("div",c,[n(l,null,{default:e((()=>[r(" menu 2 ")])),_:1})])}]]);export{d as default};
|
1
static/index.482278f5.js
Normal file
1
static/index.482278f5.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as d,z as o}from"./index.d1db8d67.js";const r={class:"app-container"};const c=a({},[["render",function(a,c){const l=t("el-card");return d(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-1 ")])),_:1})])}]]);export{c as default};
|
1
static/index.495be44a.js
Normal file
1
static/index.495be44a.js
Normal file
@ -0,0 +1 @@
|
||||
import{b as a,u as e,l as s,f as r,o as t}from"./index.d1db8d67.js";const d=a({__name:"index",setup(a){const d=e();return s().replace({path:"/"+d.params.path,query:d.query}),(a,e)=>(t(),r("div"))}});export{d as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o,z as r}from"./index.2cd28bb9.js";const c={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return o(),s("div",c,[n(l,null,{default:e((()=>[r(" menu 1-2-2 ")])),_:1})])}]]);export{d as default};
|
@ -1 +0,0 @@
|
||||
import{_ as e,f as a,h as s,w as r,e as n,o as t}from"./index.2cd28bb9.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 +0,0 @@
|
||||
import{b as a,u as e,l as s,f as r,o as t}from"./index.2cd28bb9.js";const p=a({__name:"index",setup(a){const p=e();return s().replace({path:"/"+p.params.path,query:p.query}),(a,e)=>(t(),r("div"))}});export{p as default};
|
1
static/index.649a946d.js
Normal file
1
static/index.649a946d.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as d,z as o}from"./index.d1db8d67.js";const r={class:"app-container"};const c=a({},[["render",function(a,c){const l=t("el-card");return d(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-2-1 ")])),_:1})])}]]);export{c as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as t,f as e,o,y as a}from"./index.2cd28bb9.js";const n={},i={"h-full":"","uno-padding-20":""},r=[a("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[a("div",{ma:""},[a("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),a("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),a("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[a("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),a("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1)];const s=t(n,[["render",function(t,a){return o(),e("div",i,r)}]]);export{s as default};
|
||||
import{_ as t,f as e,o,y as a}from"./index.d1db8d67.js";const n={},i={"h-full":"","uno-padding-20":""},r=[a("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[a("div",{ma:""},[a("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),a("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),a("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[a("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),a("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1)];const s=t(n,[["render",function(t,a){return o(),e("div",i,r)}]]);export{s as default};
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o,z as r}from"./index.2cd28bb9.js";const c={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return o(),s("div",c,[n(l,null,{default:e((()=>[r(" menu 1-1 ")])),_:1})])}]]);export{d as default};
|
1
static/index.965f74a5.js
Normal file
1
static/index.965f74a5.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e,f as a,h as s,w as r,e as n,o as t}from"./index.d1db8d67.js";const d={class:"app-container"};const o=e({},[["render",function(e,o){const c=n("router-view"),i=n("el-card");return t(),a("div",d,[s(i,{header:"menu 1-2"},{default:r((()=>[s(c)])),_:1})])}]]);export{o as default};
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o,z as r}from"./index.2cd28bb9.js";const c={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return o(),s("div",c,[n(l,null,{default:e((()=>[r(" menu 1-2-1 ")])),_:1})])}]]);export{d as default};
|
1
static/index.b223986e.js
Normal file
1
static/index.b223986e.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as d,z as o}from"./index.d1db8d67.js";const r={class:"app-container"};const c=a({},[["render",function(a,c){const l=t("el-card");return d(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 2 ")])),_:1})])}]]);export{c as default};
|
@ -1 +1 @@
|
||||
import{b as e,l as a,a as l,r as s,f as r,h as o,y as d,w as i,a3 as t,a4 as n,e as u,G as p,H as m,o as c,j as f,a5 as g,a6 as _,a7 as v,a8 as x,a9 as h,p as b,z as w,C as y,_ as V}from"./index.2cd28bb9.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.e5255818.js";const k={class:"login-container"},C={class:"login-card"},j=(e=>(p("data-v-6f4945e9"),e=e(),m(),e))((()=>d("div",{class:"title"},[d("img",{src:"/v3-admin-vite/static/logo-text-2.eef467fb.png"})],-1))),q={class:"content"},M=V(e({__name:"index",setup(e){const p=a(),m=l(null),V=l(!1),M=l(""),U=s({username:"admin",password:"12345678",code:""}),K={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},F=()=>{var e;null==(e=m.value)||e.validate((e=>{if(!e)return!1;V.value=!0,y().login({username:U.username,password:U.password,code:U.code}).then((()=>{p.push({path:"/"})})).catch((()=>{G(),U.password=""})).finally((()=>{V.value=!1}))}))},G=()=>{U.code="",M.value="",n().then((e=>{M.value=e.data}))};return G(),(e,a)=>{const l=u("el-input"),s=u("el-form-item"),n=u("el-icon"),p=u("el-image"),y=u("el-button"),H=u("el-form");return c(),r("div",k,[o(z,{class:"theme-switch"}),d("div",C,[j,d("div",q,[o(H,{ref_key:"loginFormRef",ref:m,model:U,rules:K,onKeyup:t(F,["enter"])},{default:i((()=>[o(s,{prop:"username"},{default:i((()=>[o(l,{modelValue:U.username,"onUpdate:modelValue":a[0]||(a[0]=e=>U.username=e),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":f(g),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),o(s,{prop:"password"},{default:i((()=>[o(l,{modelValue:U.password,"onUpdate:modelValue":a[1]||(a[1]=e=>U.password=e),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":f(_),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),o(s,{prop:"code"},{default:i((()=>[o(l,{modelValue:U.code,"onUpdate:modelValue":a[2]||(a[2]=e=>U.code=e),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":f(v),maxlength:"7",size:"large"},{append:i((()=>[o(p,{src:M.value,onClick:G,draggable:"false"},{placeholder:i((()=>[o(n,null,{default:i((()=>[o(f(x))])),_:1})])),error:i((()=>[o(n,null,{default:i((()=>[o(f(h))])),_:1})])),_:1},8,["src"])])),_:1},8,["modelValue","prefix-icon"])])),_:1}),o(y,{loading:V.value,type:"primary",size:"large",onClick:b(F,["prevent"])},{default:i((()=>[w(" 登 录 ")])),_:1},8,["loading","onClick"])])),_:1},8,["model","onKeyup"])])])])}}}),[["__scopeId","data-v-6f4945e9"]]);export{M as default};
|
||||
import{b as e,l as a,a as l,r as s,f as r,h as o,y as d,w as i,a3 as t,a4 as n,e as u,G as p,H as m,o as c,j as f,a5 as g,a6 as _,a7 as v,a8 as x,a9 as h,p as w,z as b,C as y,_ as V}from"./index.d1db8d67.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.3dc1f7a0.js";const k={class:"login-container"},C={class:"login-card"},j=(e=>(p("data-v-6f4945e9"),e=e(),m(),e))((()=>d("div",{class:"title"},[d("img",{src:"/v3-admin-vite/static/logo-text-2.eef467fb.png"})],-1))),q={class:"content"},M=V(e({__name:"index",setup(e){const p=a(),m=l(null),V=l(!1),M=l(""),U=s({username:"admin",password:"12345678",code:""}),K={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},F=()=>{var e;null==(e=m.value)||e.validate((e=>{if(!e)return!1;V.value=!0,y().login({username:U.username,password:U.password,code:U.code}).then((()=>{p.push({path:"/"})})).catch((()=>{G(),U.password=""})).finally((()=>{V.value=!1}))}))},G=()=>{U.code="",M.value="",n().then((e=>{M.value=e.data}))};return G(),(e,a)=>{const l=u("el-input"),s=u("el-form-item"),n=u("el-icon"),p=u("el-image"),y=u("el-button"),H=u("el-form");return c(),r("div",k,[o(z,{class:"theme-switch"}),d("div",C,[j,d("div",q,[o(H,{ref_key:"loginFormRef",ref:m,model:U,rules:K,onKeyup:t(F,["enter"])},{default:i((()=>[o(s,{prop:"username"},{default:i((()=>[o(l,{modelValue:U.username,"onUpdate:modelValue":a[0]||(a[0]=e=>U.username=e),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":f(g),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),o(s,{prop:"password"},{default:i((()=>[o(l,{modelValue:U.password,"onUpdate:modelValue":a[1]||(a[1]=e=>U.password=e),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":f(_),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),o(s,{prop:"code"},{default:i((()=>[o(l,{modelValue:U.code,"onUpdate:modelValue":a[2]||(a[2]=e=>U.code=e),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":f(v),maxlength:"7",size:"large"},{append:i((()=>[o(p,{src:M.value,onClick:G,draggable:"false"},{placeholder:i((()=>[o(n,null,{default:i((()=>[o(f(x))])),_:1})])),error:i((()=>[o(n,null,{default:i((()=>[o(f(h))])),_:1})])),_:1},8,["src"])])),_:1},8,["modelValue","prefix-icon"])])),_:1}),o(y,{loading:V.value,type:"primary",size:"large",onClick:w(F,["prevent"])},{default:i((()=>[b(" 登 录 ")])),_:1},8,["loading","onClick"])])),_:1},8,["model","onKeyup"])])])])}}}),[["__scopeId","data-v-6f4945e9"]]);export{M as default};
|
1
static/index.c76c4183.js
Normal file
1
static/index.c76c4183.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
static/index.d279ad01.js
Normal file
1
static/index.d279ad01.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e,f as a,h as s,w as r,e as n,o as t}from"./index.d1db8d67.js";const d={class:"app-container"};const o=e({},[["render",function(e,o){const c=n("router-view"),i=n("el-card");return t(),a("div",d,[s(i,{header:"menu 1"},{default:r((()=>[s(c)])),_:1})])}]]);export{o as default};
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as e,f as a,h as s,w as r,e as n,o as t}from"./index.2cd28bb9.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.e10f9ca5.js
Normal file
1
static/index.e10f9ca5.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as d,z as o}from"./index.d1db8d67.js";const r={class:"app-container"};const c=a({},[["render",function(a,c){const l=t("el-card");return d(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-3 ")])),_:1})])}]]);export{c as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o,z as r}from"./index.2cd28bb9.js";const c={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return o(),s("div",c,[n(l,null,{default:e((()=>[r(" menu 1-3 ")])),_:1})])}]]);export{d as default};
|
@ -0,0 +1 @@
|
||||
import{b as e,e as a,o as t,i as n,w as d,h as s,f as o,n as l,j as m,F as i,y as r,a0 as u,a1 as c,t as p}from"./index.d1db8d67.js";const f=e({__name:"index",setup(e){const{themeList:f,activeThemeName:_,setTheme:b}=c(),w=e=>{b(e)};return(e,c)=>{const b=a("el-icon"),h=a("el-tooltip"),k=a("el-dropdown-item"),x=a("el-dropdown-menu"),g=a("el-dropdown");return t(),n(g,{trigger:"click",onCommand:w},{dropdown:d((()=>[s(x,null,{default:d((()=>[(t(!0),o(i,null,l(m(f),((e,a)=>(t(),n(k,{key:a,disabled:m(_)===e.name,command:e.name},{default:d((()=>[r("span",null,p(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:d((()=>[r("div",null,[s(h,{effect:"dark",content:"主题模式",placement:"bottom"},{default:d((()=>[s(b,{size:20},{default:d((()=>[s(m(u))])),_:1})])),_:1})])])),_:1})}}});export{f as _};
|
@ -1 +0,0 @@
|
||||
import{b as e,e as a,o as t,i as n,w as s,h as d,f as o,n as l,j as m,F as i,y as r,a0 as c,a1 as u,t as p}from"./index.2cd28bb9.js";const f=e({__name:"index",setup(e){const{themeList:f,activeThemeName:_,setTheme:b}=u(),w=e=>{b(e)};return(e,u)=>{const b=a("el-icon"),h=a("el-tooltip"),k=a("el-dropdown-item"),x=a("el-dropdown-menu"),g=a("el-dropdown");return t(),n(g,{trigger:"click",onCommand:w},{dropdown:s((()=>[d(x,null,{default:s((()=>[(t(!0),o(i,null,l(m(f),((e,a)=>(t(),n(k,{key:a,disabled:m(_)===e.name,command:e.name},{default:s((()=>[r("span",null,p(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:s((()=>[r("div",null,[d(h,{effect:"dark",content:"主题模式",placement:"bottom"},{default:s((()=>[d(b,{size:20},{default:s((()=>[d(m(c))])),_:1})])),_:1})])])),_:1})}}});export{f as _};
|
@ -1 +0,0 @@
|
||||
import{b as s,l as a,e,o as t,f as o,h as n,w as c,z as p,_ as r}from"./index.2cd28bb9.js";import{S as d}from"./SwitchRoles.0d0c28b1.js";const i={class:"app-container"},l=r(s({__name:"page",setup(s){const r=a(),l=()=>{r.push({path:"/403"})};return(s,a)=>{const r=e("el-tag");return t(),o("div",i,[n(r,{type:"success",size:"large"},{default:c((()=>[p(" 当前页面只有 admin 权限可见 ")])),_:1}),n(d,{onChange:l})])}}}),[["__scopeId","data-v-f3386627"]]);export{l as default};
|
1
static/page.aa7735d2.js
Normal file
1
static/page.aa7735d2.js
Normal file
@ -0,0 +1 @@
|
||||
import{b as a,l as s,e,o as t,f as o,h as n,w as p,z as r,_ as c}from"./index.d1db8d67.js";import{S as d}from"./SwitchRoles.6fc1a791.js";const i={class:"app-container"},f=c(a({__name:"page",setup(a){const c=s(),f=()=>{c.push({path:"/403"})};return(a,s)=>{const c=e("el-tag");return t(),o("div",i,[n(c,{type:"success",size:"large"},{default:p((()=>[r(" 当前页面只有 admin 权限可见 ")])),_:1}),n(d,{onChange:f})])}}}),[["__scopeId","data-v-f3386627"]]);export{f as default};
|
@ -1 +1 @@
|
||||
import{ai as t}from"./index.2cd28bb9.js";function e(e){return t({url:"table",method:"post",data:e})}function a(e){return t({url:`table/${e}`,method:"delete"})}function r(e){return t({url:"table",method:"put",data:e})}function u(e){return t({url:"table",method:"get",params:e})}export{e as c,a as d,u as g,r as u};
|
||||
import{ai as t}from"./index.d1db8d67.js";function e(e){return t({url:"table",method:"post",data:e})}function a(e){return t({url:`table/${e}`,method:"delete"})}function r(e){return t({url:"table",method:"put",data:e})}function u(e){return t({url:"table",method:"get",params:e})}export{e as c,a as d,u as g,r as u};
|
Loading…
x
Reference in New Issue
Block a user