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(() => {