import{d as e,U as a,L as s,u as l,r as o,c as r,b as t,j as n,F as u,I as d,B as p}from"./vendor.98dba853.js";/* empty css              */import{s as m}from"./index.f608f11e.js";const i=e({name:"app",components:{UserOutlined:a,LockOutlined:s},setup(){l();const e=o({username:"",password:""}),i=async()=>{const a={username:e.username,password:e.password};m.dispatch("app/login",a)};return()=>r("div",{class:"login"},[r("h1",null,[t("用户登陆"),r(n,{to:"/forget",class:"login-forget"},{default:()=>[t("找回密码")]})]),r(u,{layout:"vertical",model:e},{default:()=>[r(u.Item,null,{default:()=>[r(d,{value:e.username,"onUpdate:value":a=>e.username=a,placeholder:"Username"},{prefix:()=>r(a,{style:"color: rgba(0, 0, 0, 0.25)"},null)})]}),r(u.Item,null,{default:()=>[r(d,{value:e.password,"onUpdate:value":a=>e.password=a,type:"password",placeholder:"Password"},{prefix:()=>r(s,{style:"color: rgba(0, 0, 0, 0.25)"},null)})]}),r(u.Item,null,{default:()=>[r(p,{block:!0,type:"primary","html-type":"submit",onClick:i},{default:()=>[t("登 录")]})]})]})])}});export{i as default};
