PageSourceSearch

https://www.mechrevo.com/en/_nuxt/iICcpPl_.js

js mechrevo.com collected 2026-10-02 11:06:15 UTC 1,716 bytes, 1 lines download raw bytes

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.