text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44741410"],{"06da":function(e,t,r){e.exports=r.p+"img/student.97458aef.png"},"11e9":function(e,t,r){var n=r("52a7"),a=r("4630"),s=r("6821"),o=r("6a99"),i=r("69a8"),c=r("c69a"),u=Object.getOwnPropertyDescriptor;t.f=r("9e1e")?u:function(e,t){if(e=s(e),t=o(t,!0),c)try{return u(e,t)}catch(r){}if(i(e,t))return a(!n.f.call(e,t),e[t])}},"636a":function(e,t,r){e.exports=r.p+"img/wave_1.84fe0e77.png"},"63e7":function(e,t,r){},"8e6e":function(e,t,r){var n=r("5ca1"),a=r("990b"),s=r("6821"),o=r("11e9"),i=r("f1ae");n(n.S,"Object",{getOwnPropertyDescriptors:function(e){var t,r,n=s(e),c=o.f,u=a(n),f={},p=0;while(u.length>p)r=c(n,t=u[p++]),void 0!==r&&i(f,t,r);return f}})},9093:function(e,t,r){var n=r("ce10"),a=r("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},"990b":function(e,t,r){var n=r("9093"),a=r("2621"),s=r("cb7c"),o=r("7726").Reflect;e.exports=o&&o.ownKeys||function(e){var t=n.f(s(e)),r=a.f;return r?t.concat(r(e)):t}},"9ed6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login"},[e._m(0),r("div",{staticClass:"form-box"},[e._m(1),r("form",{staticClass:"login-form",on:{submit:function(t){return t.preventDefault(),e.handleLogin(t)}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.username,expression:"form.username"}],staticClass:"form-item",attrs:{type:"text",autocomplete:"off",placeholder:"请输入用户名"},domProps:{value:e.form.username},on:{input:function(t){t.target.composing||e.$set(e.form,"username",t.target.value)}}}),r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"form-item",attrs:{type:"password",autocomplete:"off",placeholder:"请输入密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}}),r("button",{staticClass:"form-item submit-btn",attrs:{type:"submit"}},[e._v("立即登录")])])])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"decorate"},[n("img",{staticClass:"img-wave_1",attrs:{src:r("636a"),alt:""}}),n("img",{staticClass:"img-student",attrs:{src:r("06da"),alt:""}}),n("img",{staticClass:"img-wave_2",attrs:{src:r("fb59"),alt:""}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"title"},[r("h1",{staticStyle:{"font-size":"50px"}},[e._v("Hi,")]),r("h2",{staticStyle:{"margin-top":"20px"}},[e._v("欢迎使用金峰管理平台")])])}],s=(r("8e6e"),r("ac6a"),r("456d"),r("96cf"),r("3b8d")),o=r("bd86"),i=r("8654"),c=r("2f62");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){Object(o["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p={name:"LoginIndex",components:{},data:function(){return{loading:!1,form:{username:"123456@qq.com",password:"123456"}}},computed:f({},Object(c["e"])({logined:function(e){return e.user.logined}})),methods:f({},Object(c["b"])({setUser:"user/setUser"}),{handleLogin:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.form,r=t.username,n=t.password,this.loading=!0,e.prev=2,e.next=5,i["a"].getToken(r,n);case 5:return e.next=7,this.assignUserInfo();case 7:this.loading=!1,this.$router.push("/dashboard/index"),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](2),this.loading=!1;case 14:case"end":return e.stop()}}),e,this,[[2,11]])})));function t(){return e.apply(this,arguments)}return t}(),assignUserInfo:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i["a"].getInfo();case 2:t=e.sent,this.setUser(t);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()})},l=p,m=(r("a46e"),r("2877")),d=Object(m["a"])(l,n,a,!1,null,"fbe2407a",null);t["default"]=d.exports},a46e:function(e,t,r){"use strict";var n=r("63e7"),a=r.n(n);a.a},bd86:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r("85f2"),a=r.n(n);function s(e,t,r){return t in e?a()(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},f1ae:function(e,t,r){"use strict";var n=r("86cc"),a=r("4630");e.exports=function(e,t,r){t in e?n.f(e,t,a(0,r)):e[t]=r}},fb59:function(e,t,r){e.exports=r.p+"img/wave_2.652633a9.png"}}]);
  //# sourceMappingURL=chunk-44741410.201fde62.js.map