"use strict";(self.webpackChunkwu_vue_zone_ecology=self.webpackChunkwu_vue_zone_ecology||[]).push([[137,432],{9422:function(e,a,l){l.r(a),l.d(a,{default:function(){return m}});l(44114);var r=l(20641),s=l(50953),o=l(53751),d=l(79515),u=l(83849),t=l(66278),n=l(75220);const i={class:"ve_container"},p=(e=>((0,r.Qi)("data-v-c683a350"),e=e(),(0,r.jt)(),e))((()=>(0,r.Lk)("h1",null,"Java 内网穿透",-1)));var c={__name:"Register",setup(e){const a={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],checkPassword:[{required:!0,message:"密码确认",trigger:"blur"}]},{proxy:l}=(0,r.nI)(),c=(0,t.Pj)(),m=(0,n.rd)(),b=(0,s.Kh)({username:"",password:"",checkPassword:""}),{username:f,password:_,checkPassword:k}=(0,s.QW)(b),g=(0,s.KR)(null),h=(0,s.KR)(!1);sessionStorage.clear(),c.dispatch(`app/${d.$T}`,""),m.options.isAddDynamicMenuRoutes=!1;const v=()=>{b.password===b.checkPassword?g.value.validate((async e=>{if(e){const e=await VE_API.system.register(b);0===e.code&&(c.dispatch(`app/${d.$T}`,e.data),c.dispatch(`app/${d.Q1}`,b.username),h.value=!0,m.push({name:"AppMain"}))}})):l.$message({type:"error",message:"请确认，两次输入密码是否一致!"})};return(e,l)=>{const d=(0,r.g2)("router-link"),t=(0,r.g2)("Avatar"),n=(0,r.g2)("el-icon"),c=(0,r.g2)("el-input"),m=(0,r.g2)("el-form-item"),w=(0,r.g2)("Key"),F=(0,r.g2)("el-button"),y=(0,r.g2)("el-form"),V=(0,r.g2)("el-card");return(0,r.uX)(),(0,r.Wv)((0,s.R1)(u.default),null,{default:(0,r.k6)((()=>[(0,r.Lk)("div",i,[(0,r.bF)(V,{"body-style":{background:"rgba(0,0,0,0.15)"}},{default:(0,r.k6)((()=>[(0,r.bF)(d,{style:{float:"right"},to:{path:"login"}},{default:(0,r.k6)((()=>[(0,r.eW)("登录")])),_:1}),p,(0,r.bF)(o.eB,{name:"el-fade-in-linear"},{default:(0,r.k6)((()=>[(0,r.bo)((0,r.bF)(y,{model:b,rules:a,class:"ve_form",ref_key:"ref_form",ref:g,inline:!1,onKeyup:(0,o.jR)(v,["enter"])},{default:(0,r.k6)((()=>[(0,r.bF)(m,{prop:"username",label:"注册账号"},{default:(0,r.k6)((()=>[(0,r.bF)(c,{modelValue:(0,s.R1)(f),"onUpdate:modelValue":l[0]||(l[0]=e=>(0,s.i9)(f)?f.value=e:null),modelModifiers:{trim:!0},placeholder:"注册账号"},{prepend:(0,r.k6)((()=>[(0,r.bF)(n,{size:20},{default:(0,r.k6)((()=>[(0,r.bF)(t)])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,r.bF)(m,{prop:"password",label:"账号密码"},{default:(0,r.k6)((()=>[(0,r.bF)(c,{modelValue:(0,s.R1)(_),"onUpdate:modelValue":l[1]||(l[1]=e=>(0,s.i9)(_)?_.value=e:null),modelModifiers:{trim:!0},"show-password":"",placeholder:"账号密码"},{prepend:(0,r.k6)((()=>[(0,r.bF)(n,{size:20},{default:(0,r.k6)((()=>[(0,r.bF)(w)])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,r.bF)(m,{prop:"checkPassword",label:"密码确认"},{default:(0,r.k6)((()=>[(0,r.bF)(c,{modelValue:(0,s.R1)(k),"onUpdate:modelValue":l[2]||(l[2]=e=>(0,s.i9)(k)?k.value=e:null),modelModifiers:{trim:!0},"show-password":"",placeholder:"密码确认"},{prepend:(0,r.k6)((()=>[(0,r.bF)(n,{size:20},{default:(0,r.k6)((()=>[(0,r.bF)(w)])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,r.bF)(m,null,{default:(0,r.k6)((()=>[(0,r.bF)(F,{class:"ve_submit",type:"primary",onClick:v},{default:(0,r.k6)((()=>[(0,r.eW)(" 注册 ")])),_:1})])),_:1})])),_:1},8,["model"]),[[o.aG,!h.value]])])),_:1})])),_:1})])])),_:1})}}};var m=(0,l(64621).A)(c,[["__scopeId","data-v-c683a350"]])}}]);