|
|
|
@ -295,6 +295,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
this.$get(this.api.logins,data).then(res => { |
|
|
|
|
this.$post(this.api.updateLogInNumber,{userId: this.userId}).then(res => {}).catch(res => {}); |
|
|
|
|
|
|
|
|
|
sessionStorage.setItem('userName', res.message.user.account); |
|
|
|
|
this.$message.success('登录成功'); |
|
|
|
|
sessionStorage.setItem('sta_client_username', this.activeName == '0' ? this.loginForm.username : this.phoneParam.userphone); |
|
|
|
|
this.$store.commit("userLoginData", { userId : this.userId,accountRole: this.roleId,studentId : this.studentId,schoolId: this.schoolId,token: res.message.user.token }); |
|
|
|
|