1import{_ as f}from"./CbBh4sUL.js";import{u as _,n as g,p as v,c as b,a as e,q as w,r as i,v as l,f as o,t as x,b as y,w as h,o as S,d as V,s as k,x as d}from"./CBVuVATE.js";import{_ as N}from"./DlAUqK2U.js";const q={class:"login-page"},B={class:"login-container"},D={class:"login-box"},U={class:"form-group"},M={class:"form-group"},T=["disabled"],C={class:"login-footer"},E={__name:"login",setup(H){_({title:"ç¨æ·ç»å½ - æºæ¢°é©å½",meta:[{name:"robots",content:"noindex, nofollow"}]});const u=g(),p=v(),t=d({username:"",password:""}),r=d(!1),m=async()=>{try{r.value=!0,await u.login(t.value),p.push("/user")}catch(n){console.error("ç»å½å¤±è´¥:",n),k.error("ç»å½å¤±è´¥ï¼è¯·æ£æ¥ç¨æ·ååå¯ç ")}finally{r.value=!1}};return(n,s)=>{const c=f;return S(),b("div",q,[e("div",B,[e("div",D,[s[5]||(s[5]=e("h2",{class:"login-title"},"ç»å½",-1)),e("form",{class:"login-form",onSubmit:w(m,["prevent"])},[e("div",U,[s[2]||(s[2]=e("label",{for:"username"},"ç¨æ·å/é®ç®±",-1)),i(e("input",{id:"username","onUpdate:modelValue":s[0]||(s[0]=a=>o(t).username=a),type:"text",placeholder:"请è¾å
¥ç¨æ·åæé®ç®±",required:""},null,512),[[l,o(t).username]])]),e("div",M,[s[3]||(s[3]=e("label",{for:"password"},"å¯ç ",-1)),i(e("input",{id:"password","onUpdate:modelValue":s[1]||(s[1]=a=>o(t).password=a),type:"password",placeholder:"请è¾å
¥å¯ç ",required:""},null,512),[[l,o(t).password]])]),e("button",{type:"submit",class:"submit-btn",disabled:o(r)},x(o(r)?"ç»å½ä¸...":"ç»å½"),9,T)],32),e("div",C,[y(c,{to:"/register",class:"register-link"},{default:h(()=>[...s[4]||(s[4]=[V(" è¿æ²¡æè´¦å·ï¼ç«å³æ³¨å ",-1)])]),_:1})])])])])}}},j=N(E,[["__scopeId","data-v-d7e02f7e"]]);export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.