From 16ba0cb07e4768d9c0110c684da1ce8c8ef3c712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0?= <15071126431@163.com> Date: Wed, 28 Apr 2021 15:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Login.vue | 2 +- src/components/page/PersonalCenter.vue | 2 +- src/utils/api.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/page/Login.vue b/src/components/page/Login.vue index 5ff96f5..af386c9 100644 --- a/src/components/page/Login.vue +++ b/src/components/page/Login.vue @@ -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}); diff --git a/src/components/page/PersonalCenter.vue b/src/components/page/PersonalCenter.vue index 6b816d1..a4af0b4 100644 --- a/src/components/page/PersonalCenter.vue +++ b/src/components/page/PersonalCenter.vue @@ -1042,7 +1042,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 { diff --git a/src/utils/api.js b/src/utils/api.js index 67c9441..6795508 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -1,7 +1,7 @@ // let host = 'http://192.168.31.125:9090'//林 // let host = 'http://192.168.31.152: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 = '' if(process.env.NODE_ENV === 'development'){