webpackJsonp([9],{DiaV:function(e,t){},Quw4:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("lC5x"),n=r.n(a),s=r("J0Oq"),o=r.n(s),u=r("c2Ch"),i=r("0aFO"),c={data:function(){return{userData:{a_username:"",a_password:""}}},methods:{submitForm:function(){var e=this;return o()(n.a.mark(function t(){return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.d)("/login",e.userData).then(function(t){0===t.error_code?(e.$store.commit("getToken",t.result),Object(i.b)("登录成功"),e.$router.replace("/")):Object(i.a)(t.msg)});case 2:case"end":return t.stop()}},t,e)}))()},register:function(){this.$router.push("/register")}}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{staticClass:" login-container",attrs:{model:e.userData,"label-position":"left","label-width":"0px"}},[r("h3",{staticClass:"title"},[e._v("系统登录")]),e._v(" "),r("el-form-item",{attrs:{prop:"account"}},[r("el-input",{attrs:{type:"text",placeholder:"账号"},model:{value:e.userData.a_username,callback:function(t){e.$set(e.userData,"a_username",t)},expression:"userData.a_username"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"checkPass"}},[r("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.userData.a_password,callback:function(t){e.$set(e.userData,"a_password",t)},expression:"userData.a_password"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.submitForm()}}},[e._v("登录")]),e._v(" "),r("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.register()}}},[e._v("注册")])],1)],1)},staticRenderFns:[]};var p=r("C7Lr")(c,l,!1,function(e){r("DiaV")},"data-v-3a7a855e",null);t.default=p.exports}});
//# sourceMappingURL=9.a739e89be57af21b4b77.js.map