From 96c35e1736b26d716905810bc83f8b57f84837c6 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 22 Apr 2024 10:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E8=B4=A6=E5=8F=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E5=90=8D=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF=E7=BC=93=E5=AD=98=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-myinfo/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-myinfo/index.vue b/src/views/trials/trials-myinfo/index.vue index fc455524..fd73d236 100644 --- a/src/views/trials/trials-myinfo/index.vue +++ b/src/views/trials/trials-myinfo/index.vue @@ -269,8 +269,9 @@ export default { this.getUserInfo() }) }, - setNewUserName() { + setNewUserName() { setNewUserName(this.userForm.UserName).then(() => { + zzSessionStorage.setItem('userName', this.userForm.UserName) this.$store.dispatch('user/changeUserName', this.userForm.UserName).then((res) => { this.userForm.UserName = '' this.$message.success(this.$t('trials:trials-myinfo:message:updateSuccessfully'))