chengdu
4 years ago
parent 613b494770
commit 16ba0cb07e
  1. 2
      src/components/page/Login.vue
  2. 2
      src/components/page/PersonalCenter.vue
  3. 2
      src/utils/api.js

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

@ -1042,7 +1042,7 @@ input:focus {
margin-top: 10px; margin-top: 10px;
width: 80px; width: 80px;
height: 80px; height: 80px;
background: url('../../assets/img/img.jpg'); // background: url('../../assets/img/img.jpg');
border-radius: 50%; border-radius: 50%;
.head { .head {

@ -1,7 +1,7 @@
// let host = 'http://192.168.31.125:9090'//林 // let host = 'http://192.168.31.125:9090'//林
// let host = 'http://192.168.31.152:9090'//榕 // let host = 'http://192.168.31.152:9090'//榕
// let host = 'http://192.168.31.137:9090'//陈 // let host = 'http://192.168.31.137:9090'//陈
// let host = 'http://116.63.168.79' // let host = 'http://122.9.154.146'
let host = '' let host = ''
if(process.env.NODE_ENV === 'development'){ if(process.env.NODE_ENV === 'development'){

Loading…
Cancel
Save