1 |
- webpackJsonp([43],{QlWu:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("SQ4B"),n=a("b9vf"),l=a("qI5z"),o=a("YaEn"),i={name:"login",data:function(){return{email:"",password:""}},methods:{login:function(){var e={email:this.email,password:this.password};r.a.post(n.a.LOGIN,e).then(function(e){2e4===e.code?o.a.back():Object(l.a)("error","登陆失败:"+e.msg)}).catch(function(e){Object(l.a)("error","登陆失败:"+e.data)})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"loginForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{"label-position":"left","label-width":"100px"}},[a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{type:"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.login()}}},[e._v("\n 登录\n ")])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(i,s,!1,function(e){a("XLlr")},"data-v-2e214fb4",null);t.default=c.exports},XLlr:function(e,t){}});
|