netty-server-ui.v1.js.690.9e34bc8c.js Maven / Gradle / Ivy
The newest version!
"use strict";(self.webpackChunkwu_smart_agent_network=self.webpackChunkwu_smart_agent_network||[]).push([[690,289],{42858:(e,r,n)=>{n.r(r),n.d(r,{default:()=>w});var t=n(83986),u=n(93540),a=(n(70560),n(66252)),o=n(2262),l=n(49963),s=n(32393),d=n(85729),i=n(33907),c=n(22201),p={class:"ve_container"},m=function(e){return(0,a.dD)("data-v-eb778c58"),e=e(),(0,a.Cn)(),e}((function(){return(0,a._)("h1",null,"Lazy ORM 内网穿透",-1)}));const f={__name:"Register",setup:function(e){var r={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],checkPassword:[{required:!0,message:"密码确认",trigger:"blur"}]},n=(0,a.FN)().proxy,f=(0,i.oR)(),w=(0,c.tv)(),_=(0,o.qj)({username:"",password:"",checkPassword:""}),h=(0,o.BK)(_),v=h.username,g=h.password,k=h.checkPassword,b=(0,o.iH)(null),W=(0,o.iH)(!1);sessionStorage.clear(),f.dispatch("app/".concat(s.L4),""),w.options.isAddDynamicMenuRoutes=!1;var y=function(){_.password===_.checkPassword?b.value.validate(function(){var e=(0,u.Z)((0,t.Z)().mark((function e(r){var n;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=7;break}return e.next=3,VE_API.system.register(_);case 3:0===(n=e.sent).code&&(f.dispatch("app/".concat(s.L4),n.data),f.dispatch("app/".concat(s.TR),_.username),W.value=!0,w.push({name:"AppMain"})),e.next=8;break;case 7:return e.abrupt("return");case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()):n.$message({type:"error",message:"请确认,两次输入密码是否一致!"})};return function(e,n){var t=(0,a.up)("router-link"),u=(0,a.up)("Avatar"),s=(0,a.up)("el-icon"),i=(0,a.up)("el-input"),c=(0,a.up)("el-form-item"),f=(0,a.up)("Key"),w=(0,a.up)("el-button"),h=(0,a.up)("el-form"),V=(0,a.up)("el-card");return(0,a.wg)(),(0,a.j4)((0,o.SU)(d.default),null,{default:(0,a.w5)((function(){return[(0,a._)("div",p,[(0,a.Wm)(V,{"body-style":{background:"rgba(0,0,0,0.15)"}},{default:(0,a.w5)((function(){return[(0,a.Wm)(t,{style:{float:"right"},to:{path:"login"}},{default:(0,a.w5)((function(){return[(0,a.Uk)("登录")]})),_:1}),m,(0,a.Wm)(l.uT,{name:"el-fade-in-linear"},{default:(0,a.w5)((function(){return[(0,a.wy)((0,a.Wm)(h,{model:_,rules:r,class:"ve_form",ref_key:"ref_form",ref:b,inline:!1,onKeyup:(0,l.D2)(y,["enter"])},{default:(0,a.w5)((function(){return[(0,a.Wm)(c,{prop:"username",label:"注册账号"},{default:(0,a.w5)((function(){return[(0,a.Wm)(i,{modelValue:(0,o.SU)(v),"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,o.dq)(v)?v.value=e:null}),modelModifiers:{trim:!0},placeholder:"注册账号"},{prepend:(0,a.w5)((function(){return[(0,a.Wm)(s,{size:20},{default:(0,a.w5)((function(){return[(0,a.Wm)(u)]})),_:1})]})),_:1},8,["modelValue"])]})),_:1}),(0,a.Wm)(c,{prop:"password",label:"账号密码"},{default:(0,a.w5)((function(){return[(0,a.Wm)(i,{modelValue:(0,o.SU)(g),"onUpdate:modelValue":n[1]||(n[1]=function(e){return(0,o.dq)(g)?g.value=e:null}),modelModifiers:{trim:!0},"show-password":"",placeholder:"账号密码"},{prepend:(0,a.w5)((function(){return[(0,a.Wm)(s,{size:20},{default:(0,a.w5)((function(){return[(0,a.Wm)(f)]})),_:1})]})),_:1},8,["modelValue"])]})),_:1}),(0,a.Wm)(c,{prop:"checkPassword",label:"密码确认"},{default:(0,a.w5)((function(){return[(0,a.Wm)(i,{modelValue:(0,o.SU)(k),"onUpdate:modelValue":n[2]||(n[2]=function(e){return(0,o.dq)(k)?k.value=e:null}),modelModifiers:{trim:!0},"show-password":"",placeholder:"密码确认"},{prepend:(0,a.w5)((function(){return[(0,a.Wm)(s,{size:20},{default:(0,a.w5)((function(){return[(0,a.Wm)(f)]})),_:1})]})),_:1},8,["modelValue"])]})),_:1}),(0,a.Wm)(c,null,{default:(0,a.w5)((function(){return[(0,a.Wm)(w,{class:"ve_submit",type:"primary",onClick:y},{default:(0,a.w5)((function(){return[(0,a.Uk)(" 注册 ")]})),_:1})]})),_:1})]})),_:1},8,["model"]),[[l.F8,!W.value]])]})),_:1})]})),_:1},8,["body-style"])])]})),_:1})}}};const w=(0,n(48118).Z)(f,[["__scopeId","data-v-eb778c58"]])}}]);