"use strict";(self["webpackChunktest"]=self["webpackChunktest"]||[]).push([[33],{2033:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"login"},[r("h1",[e._v("欢迎来到后台管理系统")]),r("div",{staticClass:"inp"},[r("form",{attrs:{action:""}},[e._v(" 用户名: "),r("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)}}}),r("br"),r("br"),e._v(" 密  码: "),r("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)}}}),r("br"),r("br"),r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("登录")])],1)])])])},a=[],n=r(6198),o=(r(5666),{name:"Login",data:function(){return{id:"",password:""}},methods:{submit:function(){var e=this;return(0,n.Z)(regeneratorRuntime.mark((function t(){var r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={username:e.id,password:e.password},t.next=3,e.$axios("/api/user/login/","POST",r);case 3:s=t.sent,0===s.code?(e.$message.success("登录成功"),window.sessionStorage.setItem("token",123),e.$router.push("/LayOut")):e.$message.error("登录失败");case 5:case"end":return t.stop()}}),t)})))()}}}),i=o,u=r(1001),p=(0,u.Z)(i,s,a,!1,null,"6bbe5650",null),c=p.exports}}]);
//# sourceMappingURL=33-legacy.js.map