优化个人中心选择学科
This commit is contained in:
parent
fd5343c942
commit
ebed58ea9e
|
@ -62,10 +62,18 @@ const handleUserEduStage = (item) => {
|
||||||
// 默认语文
|
// 默认语文
|
||||||
userStore.edusubject = '语文'
|
userStore.edusubject = '语文'
|
||||||
}
|
}
|
||||||
|
else if(item === '高中' && userStore.edusubject === "道德与法治"){
|
||||||
|
// 默认语文
|
||||||
|
userStore.edusubject = '政治'
|
||||||
|
}
|
||||||
|
else if(item != '高中' && userStore.edusubject === "政治"){
|
||||||
|
// 默认语文
|
||||||
|
userStore.edusubject = '道德与法治'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 选择学科
|
// 选择学科
|
||||||
const handleUserEduSubject = (item) => {
|
const handleUserEduSubject = (item) => {
|
||||||
userStore.edusubject = item
|
userStore.edusubject = item;
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getSubject()
|
getSubject()
|
||||||
|
|
Loading…
Reference in New Issue