From ec092a5b79fddbf242d8205583360c539b6dfe02 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Tue, 16 Nov 2021 17:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Login.vue | 2 ++ src/components/page/Record.vue | 4 +++- src/config/index.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/page/Login.vue b/src/components/page/Login.vue index 2d452d6..893afb0 100644 --- a/src/components/page/Login.vue +++ b/src/components/page/Login.vue @@ -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 }); diff --git a/src/components/page/Record.vue b/src/components/page/Record.vue index e1660fe..6042f8b 100644 --- a/src/components/page/Record.vue +++ b/src/components/page/Record.vue @@ -6,7 +6,7 @@
姓名
-{{overview.userName}}
+{{userName}}