diff --git a/src/components/page/Login.vue b/src/components/page/Login.vue index 3dd9ec4..26160c8 100644 --- a/src/components/page/Login.vue +++ b/src/components/page/Login.vue @@ -100,7 +100,7 @@ export default { // this.$post(this.api.updateLogInNumber,{userId: data.userId}).then(res => {}).catch(res => {}); res.message.listValue && this.$config.dynamicRoute && addRoutes(res.message.listValue) this.$message.success('登录成功'); - sessionStorage.setItem('sta_server_username', this.param.username); + sessionStorage.setItem('sta_server_username', this.activeName == '0' ? this.param.username : this.phoneParam.userphone); this.$store.commit("userLoginData", { userLogin_id : data.userId,userRole_id: data.roleId,schoolId: data.schoolId,token: data.token,userName: data.userName}); res.message.retvalue.userAvatars && this.$store.commit("userPhoto", { avatar : res.message.retvalue.userAvatars}) this.$store.commit("dataTime", { dataTime : res.message.retvalue.dataTime}); diff --git a/src/components/page/PersonalCenter.vue b/src/components/page/PersonalCenter.vue index fca10c7..3c8cbbf 100644 --- a/src/components/page/PersonalCenter.vue +++ b/src/components/page/PersonalCenter.vue @@ -1068,7 +1068,7 @@ input:focus { margin-top: 10px; width: 80px; height: 80px; - background: url('../../assets/img/img.jpg'); + // background: url('../../assets/img/img.jpg'); border-radius: 50%; .head {