优化个人中心选择学科

This commit is contained in:
“zouyf” 2024-11-21 15:58:57 +08:00
parent fd5343c942
commit ebed58ea9e
1 changed files with 9 additions and 1 deletions

View File

@ -62,10 +62,18 @@ const handleUserEduStage = (item) => {
//
userStore.edusubject = '语文'
}
else if(item === '高中' && userStore.edusubject === "道德与法治"){
//
userStore.edusubject = '政治'
}
else if(item != '高中' && userStore.edusubject === "政治"){
//
userStore.edusubject = '道德与法治'
}
}
//
const handleUserEduSubject = (item) => {
userStore.edusubject = item
userStore.edusubject = item;
}
onMounted(() => {
getSubject()