"use strict";(self["webpackChunktest"]=self["webpackChunktest"]||[]).push([[684],{5684:function(e,t,s){s.r(t),s.d(t,{default:function(){return d}});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"login"},[s("h1",[e._v("欢迎来到后台管理系统")]),s("div",{staticClass:"inp"},[s("form",{attrs:{action:""}},[e._v(" 用户名: "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.id,expression:"id"}],attrs:{type:"text",placeholder:"请输入账号"},domProps:{value:e.id},on:{input:function(t){t.target.composing||(e.id=t.target.value)}}}),s("br"),s("br"),e._v(" 密  码: "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password",placeholder:"请输入密码",autocomplete:"off"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}}),s("br"),s("br"),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("登录")])],1)])]),s("div",{staticClass:"login-phone"},[e._m(0),s("div",{staticClass:"login-form"},[s("div",{staticClass:"login-inp"},[s("label",[e._v("账号")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.id,expression:"id"}],attrs:{type:"text"},domProps:{value:e.id},on:{input:function(t){t.target.composing||(e.id=t.target.value)}}})]),s("div",{staticClass:"login-inp"},[s("label",[e._v("密码")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"password"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),s("div",{staticClass:"login-inp",staticStyle:{"background-color":"#50b2f8"},on:{click:e.submit}},[s("a",{attrs:{href:"#"}},[e._v("立即登录")])])])])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"welcome"},[a("img",{attrs:{src:s(7404)}})])}],i=s(6198),o=(s(5666),{name:"Login",data:function(){return{id:"",password:""}},methods:{submit:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var s,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s={username:e.id,password:e.password},t.next=3,e.$axios("/api/user/login/","POST",s);case 3:a=t.sent,0===a.code?(e.$message.success("登录成功"),window.sessionStorage.setItem("token",123),e.$router.push("/LayOut")):e.$message.error("登录失败");case 5:case"end":return t.stop()}}),t)})))()}}}),n=o,l=s(1001),u=(0,l.Z)(n,a,r,!1,null,"85db8b00",null),d=u.exports},7404:function(e,t,s){e.exports=s.p+"img/welcome.png"}}]);
//# sourceMappingURL=684-legacy.js.map