import{d as p,u as c,ai as m,aj as _,r as u,o as g,a6 as f,a9 as a,a7 as t,a8 as v,ag as h,ah as w,ak as V,af as C}from"./vendor.e9cda63f.js";import{_ as I,o as l,p as k,n as A,q as b}from"./index.ef7ee694.js";import{_ as y}from"./good.86c1ccc2.js";const F=p({name:"Login",setup(){const e=c(),s=m({username:"",password:""});return{form:s,signin:()=>{s.username?s.password?k.signin(s).then(o=>{if(o.code==200)A(o.message);else{l(o.message);return}console.log("\u767B\u5F55\u6210\u529F\uFF0C\u8DF3\u8F6C\u5230\u9996\u9875",o),b(o.data.token),e.push("/")}):l("\u5BC6\u7801\u4E3A\u7A7A"):l("\u7528\u6237\u540D\u4E3A\u7A7A")},useI18n:_}}}),B=e=>(h("data-v-dc2dbc6a"),e=e(),w(),e),j={class:"bg"},L={class:"panel"},S={class:"panel-left"},$=B(()=>a("div",{class:"panel-right"},[a("img",{src:y,width:"60"}),a("div",{class:"title"},"game-tools")],-1));function D(e,s,r,o,E,N){const i=u("el-input"),d=u("el-button");return g(),f("div",j,[a("div",L,[a("div",S,[t(i,{modelValue:e.form.username,"onUpdate:modelValue":s[0]||(s[0]=n=>e.form.username=n),class:"form-item",placeholder:e.useI18n().t("login.user_tip")},null,8,["modelValue","placeholder"]),t(i,{modelValue:e.form.password,"onUpdate:modelValue":s[1]||(s[1]=n=>e.form.password=n),class:"form-item",type:"password",placeholder:e.useI18n().t("login.pwd_tip")},null,8,["modelValue","placeholder"]),t(d,{class:"login-btn",onClick:e.signin},{default:v(()=>[V(C(e.useI18n().t("login.login")),1)]),_:1},8,["onClick"])]),$])])}var q=I(F,[["render",D],["__scopeId","data-v-dc2dbc6a"]]);export{q as default};
