| 1 |
- import{_ as g}from"./login-VH6pjdPe.js";import{_ as f,m as w,C as v,D as s,q as a,r as p,v as u,B as V,L as $}from"./index-DmzX1BBr.js";const k=w({components:{},props:[],setup(){const{ajax:n,helper:e}=$("$global"),l=p(""),r=p("");return{register:async()=>{const t=await n.user.register(l.value,r.value);t&&(e.write("userName",String(t.username)),e.goLink("/login"))},username:l,password:r}}});function y(n,e,l,r,i,t){const d=u("a-input"),m=u("a-input-password");return V(),v("main",null,[s("section",null,[e[5]||(e[5]=s("header",null,[s("img",{src:g}),s("p",null,"欢迎使用")],-1)),e[6]||(e[6]=s("p",null,"账号注册",-1)),s("section",null,[e[3]||(e[3]=s("p",null,"账号",-1)),s("div",null,[a(d,{placeholder:"请输入账号",style:{width:"250px",height:"40px"},modelValue:n.username,"onUpdate:modelValue":e[0]||(e[0]=o=>n.username=o)},null,8,["modelValue"])])]),s("section",null,[e[4]||(e[4]=s("p",null,"密码",-1)),s("div",null,[a(m,{type:"password",placeholder:"请输入密码",style:{width:"250px",height:"40px"},modelValue:n.password,"onUpdate:modelValue":e[1]||(e[1]=o=>n.password=o)},null,8,["modelValue"])])]),s("div",{onClick:e[2]||(e[2]=(...o)=>n.register&&n.register(...o))},"注册")])])}const b=f(k,[["render",y],["__scopeId","data-v-b8d3c93b"]]);export{b as default};
|