diff --git a/element-vue/src/components/login.vue b/element-vue/src/components/login.vue
index 53e55bb..4871178 100644
--- a/element-vue/src/components/login.vue
+++ b/element-vue/src/components/login.vue
@@ -6,7 +6,7 @@
+
{
if (valid) {
- console.log(this.ruleForm.identity)
- console.log(this.ruleForm.account)
- console.log(this.ruleForm.psw)
- get('login',{
- identity: this.ruleForm.identity,
- account: this.ruleForm.account,
- psw: this.ruleForm.psw
- })
post('login',{
identity: this.ruleForm.identity,
- account: this.ruleForm.account,
- psw: this.ruleForm.psw
+ username: this.ruleForm.username,
+ password: this.ruleForm.password
})
- // axios.post('/login', {
- // identity: this.identity,
- // account: this.account,
- // psw: this.psw
- // })
- // .then(function (response) { //取出服务器响应回来的数据
- // console.log(response);
- // this.$router.push('/')
- // })
} else {
console.log('error submit!!');
return false;
@@ -151,7 +134,7 @@
width: 30%;
}
- .forgetPsw{
+ .forgetpassword{
position: relative;
left: 28%;
}