(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-209da8fc"],{"206d":function(a,t,e){"use strict";var o=e("f64d"),i=e.n(o);i.a},a55b:function(a,t,e){"use strict";e.r(t);var o=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"login"},[e("div",{staticClass:"login-div"},[e("h1",[a._v("巴中逸沣安全培训")]),e("form",[e("div",{staticClass:"input_div"},[e("label",[a._v("用户名")]),e("input",{directives:[{name:"model",rawName:"v-model",value:a.logindata.username,expression:"logindata.username"}],attrs:{type:"text",placeholder:"请输入用户名"},domProps:{value:a.logindata.username},on:{input:function(t){t.target.composing||a.$set(a.logindata,"username",t.target.value)}}})]),e("div",{staticClass:"input_div"},[e("label",[a._v("密  码")]),e("input",{directives:[{name:"model",rawName:"v-model",value:a.logindata.password,expression:"logindata.password"}],attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:a.logindata.password},on:{input:function(t){t.target.composing||a.$set(a.logindata,"password",t.target.value)}}})]),e("div",{staticClass:"input_div code"},[e("img",{attrs:{src:a.code,alt:""},on:{click:a.getCode}}),e("label",[a._v("图形码")]),e("input",{directives:[{name:"model",rawName:"v-model",value:a.logindata.imgcode,expression:"logindata.imgcode"}],attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:a.logindata.imgcode},on:{input:function(t){t.target.composing||a.$set(a.logindata,"imgcode",t.target.value)}}})]),e("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:a.login}},[a._v("登 录")])],1)])])},i=[],n={name:"login",data:function(){return{code:"",logindata:{username:"root",password:"root",imgcode_id:"",imgcode:""}}},methods:{login:function(){var a=this,t=this.logindata;this.$api.login(t).then((function(t){t.data;0==t.data.code?window.location.hash="/":a.$message.error("账号或者密码有误")})).catch((function(t){a.$message.error("账号或者密码有误")}))},getCode:function(){var a=this;this.$api.getCode().then((function(t){a.code=t.data.data.ubase64,a.logindata.imgcode_id=t.data.data.captcha_id}))}},created:function(){this.getCode()}},d=n,s=(e("206d"),e("4023")),l=Object(s["a"])(d,o,i,!1,null,null,null);t["default"]=l.exports},f64d:function(a,t,e){}}]); //# sourceMappingURL=chunk-209da8fc.6977ddd0.js.map