"use strict";(self.webpackChunkwu_vue_zone_ecology_net=self.webpackChunkwu_vue_zone_ecology_net||[]).push([[421,719],{78177:function(e,a,l){l.r(a),l.d(a,{default:function(){return i}});l(74538);var r=l(67759),s=l(76364),u=l(12257),o=l(95170),d=l(21615),t=l(81985),n=l(79065);const p={class:"ve_container"};var m={__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.FN)(),m=(0,t.oR)(),i=(0,n.tv)(),c=(0,s.qj)({username:"",password:"",checkPassword:""}),{username:w,password:_,checkPassword:f}=(0,s.BK)(c),g=(0,s.iH)(null),h=(0,s.iH)(!1);sessionStorage.clear(),m.dispatch(`app/${o.L4}`,""),i.options.isAddDynamicMenuRoutes=!1;const v=()=>{c.password===c.checkPassword?g.value.validate((async e=>{if(e){const e=await VE_API.system.register(c);0===e.code&&(m.dispatch(`app/${o.L4}`,e.data),m.dispatch(`app/${o.TR}`,c.username),h.value=!0,i.push({name:"AppMain"}))}})):l.$message({type:"error",message:"请确认，两次输入密码是否一致!"})};return(e,l)=>{const o=(0,r.up)("router-link"),t=(0,r.up)("Avatar"),n=(0,r.up)("el-icon"),m=(0,r.up)("el-input"),i=(0,r.up)("el-form-item"),W=(0,r.up)("Key"),y=(0,r.up)("el-button"),k=(0,r.up)("el-form"),b=(0,r.up)("el-card");return(0,r.wg)(),(0,r.j4)((0,s.SU)(d.default),null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r.Wm)(b,{"body-style":{background:"rgba(0,0,0,0.15)"}},{default:(0,r.w5)((()=>[(0,r.Wm)(o,{style:{float:"right"},to:{path:"login"}},{default:(0,r.w5)((()=>l[3]||(l[3]=[(0,r.Uk)("登录")]))),_:1}),l[5]||(l[5]=(0,r._)("h1",null,"网络渗透",-1)),(0,r.Wm)(u.uT,{name:"el-fade-in-linear"},{default:(0,r.w5)((()=>[(0,r.wy)((0,r.Wm)(k,{model:c,rules:a,class:"ve_form",ref_key:"ref_form",ref:g,inline:!1,onKeyup:(0,u.D2)(v,["enter"])},{default:(0,r.w5)((()=>[(0,r.Wm)(i,{prop:"username",label:"注册账号"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{modelValue:(0,s.SU)(w),"onUpdate:modelValue":l[0]||(l[0]=e=>(0,s.dq)(w)?w.value=e:null),modelModifiers:{trim:!0},placeholder:"注册账号"},{prepend:(0,r.w5)((()=>[(0,r.Wm)(n,{size:20},{default:(0,r.w5)((()=>[(0,r.Wm)(t)])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,r.Wm)(i,{prop:"password",label:"账号密码"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{modelValue:(0,s.SU)(_),"onUpdate:modelValue":l[1]||(l[1]=e=>(0,s.dq)(_)?_.value=e:null),modelModifiers:{trim:!0},"show-password":"",placeholder:"账号密码"},{prepend:(0,r.w5)((()=>[(0,r.Wm)(n,{size:20},{default:(0,r.w5)((()=>[(0,r.Wm)(W)])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,r.Wm)(i,{prop:"checkPassword",label:"密码确认"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,{modelValue:(0,s.SU)(f),"onUpdate:modelValue":l[2]||(l[2]=e=>(0,s.dq)(f)?f.value=e:null),modelModifiers:{trim:!0},"show-password":"",placeholder:"密码确认"},{prepend:(0,r.w5)((()=>[(0,r.Wm)(n,{size:20},{default:(0,r.w5)((()=>[(0,r.Wm)(W)])),_:1})])),_:1},8,["modelValue"])])),_:1}),(0,r.Wm)(i,null,{default:(0,r.w5)((()=>[(0,r.Wm)(y,{class:"ve_submit",type:"primary",onClick:v},{default:(0,r.w5)((()=>l[4]||(l[4]=[(0,r.Uk)(" 注册 ")]))),_:1})])),_:1})])),_:1},8,["model"]),[[u.F8,!h.value]])])),_:1})])),_:1})])])),_:1})}}};var i=(0,l(70636).Z)(m,[["__scopeId","data-v-216052e6"]])}}]);