|
|
|
@ -298,7 +298,7 @@ export default { |
|
|
|
|
this.$get(this.api.logins,data).then(res => { |
|
|
|
|
this.$post(this.api.updateLogInNumber,{userId: this.userId}).then(res => {}).catch(res => {}); |
|
|
|
|
this.$message.success('登录成功'); |
|
|
|
|
sessionStorage.setItem('kd_client_username', this.loginForm.username); |
|
|
|
|
sessionStorage.setItem('kd_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}); |
|
|
|
|
res.message.user.userAvatars && this.$store.commit("userPhoto", { avatar : res.message.user.userAvatars}); |
|
|
|
|
this.$store.commit("userName", { userName : res.message.user.userName}); |
|
|
|
|