fix:个人中心修改学科问题; #68

Merged
yangws merged 1 commits from yws_dev into main 2024-11-27 10:30:08 +08:00
1 changed files with 2 additions and 2 deletions

View File

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