二次报名否不跳转

This commit is contained in:
zhangsir
2024-05-17 09:02:42 +08:00
parent b1b752ac7c
commit 28e01b6f99

View File

@@ -39,10 +39,12 @@ export default {
secondExamine({teacherId:this.teacherId,second,}).then(res=>{ secondExamine({teacherId:this.teacherId,second,}).then(res=>{
this.newTeacherId=res.data.replace(/[^0-9]/ig,'') this.newTeacherId=res.data.replace(/[^0-9]/ig,'')
if (res.code==200){ if (res.code==200){
this.$router.push({ if(second!=2){
path:'/need/twoathentication', this.$router.push({
query:{teacherId:this.newTeacherId} path:'/need/twoathentication',
}) query:{teacherId:this.newTeacherId}
})
}
} }
}) })
}, },