From 7a6f57a9b7b45f2397af6d2e49e44deba8e82f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Wed, 27 Nov 2024 10:29:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E4=BF=AE=E6=94=B9=E5=AD=A6=E7=A7=91=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/profile/userInfo.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue index b927274..7666bdf 100644 --- a/src/renderer/src/views/profile/userInfo.vue +++ b/src/renderer/src/views/profile/userInfo.vue @@ -162,8 +162,8 @@ setTimeout(() => { function submit() { proxy.$refs.userRef.validate((valid) => { if (valid) { - userStore.user.edusubject = sessionStore.get('edusubject') - userStore.user.edustage = sessionStore.get('edustage') + userStore.user.edusubject = sessionStore.get('edusubject') ? sessionStore.get('edusubject') : userStore.user.edusubject + userStore.user.edustage = sessionStore.get('edustage') ? sessionStore.get('edustage') : userStore.user.edustage updateUserInfo(userStore.user).then((response) => { if(response.code == 200){ userStore.login({username:userStore.user.userName,password:userStore.user.plainpwd}).then(() => {