1
0
Files
build.ems/build/usr/local/omc/htdocs/front/js/index.DFDT0B3I.js
2024-10-25 14:59:47 +08:00

2 lines
2.0 KiB
JavaScript

import{g as w,y as N,z as B,r as P,W as q,k as C,D as I,J as i,t,p as o,F as v,n as d,aq as M,l as a,aH as O,E as T,aI as V}from"./vendor/index.CRpmXtWV.js";import{d as b,a as A,c as E,k as U,_ as z}from"../index.D-NvtsOM.js";const D={class:"container"},K=M('<section data-v-c7972009><div class="animation animation1" data-v-c7972009></div><div class="animation animation2" data-v-c7972009></div><div class="animation animation3" data-v-c7972009></div><div class="animation animation4" data-v-c7972009></div><div class="animation animation5" data-v-c7972009></div></section>',1),R={class:"lock-screen_login"},F={class:"lock-screen_login-user"},G={class:"nick"},H={class:"lock-screen_login-from"},J=w({__name:"index",setup(W){const{t:n}=b(),s=A(),k=E(),r=U(),l=N(),u=B();function f(){let e=l.meta.title;e.indexOf("router.")!==-1&&(e=n(e)),k.setTitle(e)}const c=P("");function p(){if(r.lockPasswd===c.value){a.message.success(n("components.LockScreen.validSucc"),3),c.value="",r.handleMaskType("none");const e=l.query?.redirect||"/index";u.push({path:e})}else a.message.error(n("components.LockScreen.validError"),3)}function h(){r.handleMaskType("none");const e=l.query?.redirect||"/index";s.fnLogOut().finally(()=>u.push({name:"Login",query:{redirect:e}}))}return q(()=>{f()}),(e,_)=>{const g=a.Avatar,y=a.Input,x=V,m=a.Button,S=a.InputGroup;return C(),I("div",D,[K,i("div",R,[i("div",F,[t(g,{shape:"circle",size:100,src:o(s).getAvatar,alt:o(s).userName},null,8,["src","alt"]),i("span",G,v(o(s).nickName),1)]),i("div",H,[t(S,{compact:""},{default:d(()=>[t(y,{type:"password",value:c.value,"onUpdate:value":_[0]||(_[0]=L=>c.value=L),placeholder:o(n)("components.LockScreen.inputPlacePwd"),maxlength:32,style:{width:"calc(100% - 50px)"},onKeyup:O(p,["enter"])},null,8,["value","placeholder"]),t(m,{type:"primary",onClick:p},{default:d(()=>[t(x)]),_:1})]),_:1}),t(m,{type:"text",class:"logout",onClick:h},{default:d(()=>[T(v(o(n)("components.LockScreen.backLogin")),1)]),_:1})])])])}}}),X=z(J,[["__scopeId","data-v-c7972009"]]);export{X as default};