Merge branch 'zcwy-zsx' into dev_master

This commit is contained in:
nisen
2024-08-23 14:21:30 +08:00

View File

@@ -301,6 +301,11 @@ const { data } = useRequest(
chapterOrStageId, chapterOrStageId,
targetId: infoId ? infoId : 0, targetId: infoId ? infoId : 0,
},(res)=>{ },(res)=>{
if (res.code === 6) {
router.push({
path: "/NotProject2",
});
}
if(res.data.projectInfoList.length == 0){ if(res.data.projectInfoList.length == 0){
res.data.projectInfoList=[ res.data.projectInfoList=[
{teacherName: '', courseName: '', projectName: ''} {teacherName: '', courseName: '', projectName: ''}
@@ -309,11 +314,7 @@ const { data } = useRequest(
}else{ }else{
res.data.falseS = true res.data.falseS = true
} }
if (res.code === 6) { },
router.push({
path: "/NotProject2",
});
} },
(e) => { (e) => {
useRequest( useRequest(
checkStudentExist, checkStudentExist,
@@ -426,7 +427,7 @@ onMounted(() => {
result: JSON.stringify(data.value), result: JSON.stringify(data.value),
beginTime: answerTime, beginTime: answerTime,
}) })
if (res.data.isSubmit) { if (res.code == 200 && res.data.isSubmit) {
open(); open();
} }
}) })