PageSourceSearch

https://eleadmin.cn/assets/register-Ct-LfbKS.js

js eleadmin.cn collected 2026-10-06 14:15:44 UTC 3,798 bytes, 1 lines download raw bytes

1import{_ as E,r as f,o as _,c as v,d as s,e as r,k as t,f as i,a as P,h as R,j as u,l as y,m as U,n as z,q as B,p as K,t as N,E as T,s as I}from"./index-C1KeoJ38.js";const M={class:"register"},A={class:"register-code"},$=["src"],j={key:0},F={key:1},H={style:{float:"right"}},L={__name:"register",setup(S){const V=P(),{proxy:x}=I(),o=f({username:"",password:"",confirmPassword:"",code:"",uuid:""}),b={username:[{required:!0,trigger:"blur",message:"请输入您的账号"},{min:2,max:20,message:"用户账号长度必须介于 2 和 20 之间",trigger:"blur"}],password:[{required:!0,trigger:"blur",message:"请输入您的密码"},{min:5,max:20,message:"用户密码长度必须介于 5 和 20 之间",trigger:"blur"}],confirmPassword:[{required:!0,trigger:"blur",message:"请再次输入您的密码"},{required:!0,validator:(l,e,a)=>{o.value.password!==e?a(new Error("两次输入的密码不一致")):a()},trigger:"blur"}],code:[{required:!0,trigger:"change",message:"请输入验证码"}]},h=f(""),c=f(!1),p=f(!0);function m(){x.$refs.registerRef.validate(l=>{l&&(c.value=!0,N(o.value).then(e=>{const a=o.value.username;T.alert("<font color='red'>恭喜你,您的账号 "+a+" 注册成功!</font>","系统提示",{dangerouslyUseHTMLString:!0,type:"success"}).then(()=>{V.push("/login")}).catch(()=>{})}).catch(()=>{c.value=!1,p&&w()}))})}function w(){R().then(l=>{p.value=l.captchaEnabled===void 0?!0:l.captchaEnabled,p.value&&(h.value="data:image/gif;base64,"+l.img,o.value.uuid=l.uuid)})}return w(),(l,e)=>{const a=u("svg-icon"),g=u("el-input"),d=u("el-form-item"),k=u("el-button"),C=u("router-link"),q=u("el-form");return _(),v("div",M,[s(q,{ref:"registerRef",model:t(o),rules:b,class:"register-form"},{default:r(()=>[e[5]||(e[5]=i("h3",{class:"title"},"EleAdmin后台管理系统",-1)),s(d,{prop:"username"},{default:r(()=>[s(g,{modelValue:t(o).username,"onUpdate:modelValue":e[0]||(e[0]=n=>t(o).username=n),type:"text",size:"large","auto-complete":"off",placeholder:"账号"},{prefix:r(()=>[s(a,{"icon-class":"user",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),s(d,{prop:"password"},{default:r(()=>[s(g,{modelValue:t(o).password,"onUpdate:modelValue":e[1]||(e[1]=n=>t(o).password=n),type:"password",size:"large","auto-complete":"off",placeholder:"密码",onKeyup:y(m,["enter"])},{prefix:r(()=>[s(a,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),s(d,{prop:"confirmPassword"},{default:r(()=>[s(g,{modelValue:t(o).confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=n=>t(o).confirmPassword=n),type:"password",size:"large","auto-complete":"off",placeholder:"确认密码",onKeyup:y(m,["enter"])},{prefix:r(()=>[s(a,{"icon-class":"password",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"])]),_:1}),t(p)?(_(),U(d,{key:0,prop:"code"},{default:r(()=>[s(g,{size:"large",modelValue:t(o).code,"onUpdate:modelValue":e[3]||(e[3]=n=>t(o).code=n),"auto-complete":"off",placeholder:"验证码",style:{width:"63%"},onKeyup:y(m,["enter"])},{prefix:r(()=>[s(a,{"icon-class":"validCode",class:"el-input__icon input-icon"})]),_:1},8,["modelValue"]),i("div",A,[i("img",{src:t(h),onClick:w,class:"register-code-img"},null,8,$)])]),_:1})):z("",!0),s(d,{style:{width:"100%"}},{default:r(()=>[s(k,{loading:t(c),size:"large",type:"primary",style:{width:"100%"},onClick:B(m,["prevent"])},{default:r(()=>[t(c)?(_(),v("span",F,"注 册 中...")):(_(),v("span",j,"注 册"))]),_:1},8,["loading"]),i("div",H,[s(C,{class:"link-type",to:"/login"},{default:r(()=>e[4]||(e[4]=[K("使用已有账户登录")])),_:1})])]),_:1})]),_:1},8,["model"]),e[6]||(e[6]=i("div",{class:"el-register-footer"},[i("span",null,"Copyright © 2018-2023 ruoyi.vip All Rights Reserved.")],-1))])}}},J=E(L,[["__scopeId","data-v-d23ea20e"]]);export{J as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.