评估项目外人员扫码报错进一步处理

This commit is contained in:
zhangsir
2024-08-28 16:34:02 +08:00
parent 3ed6be51cc
commit 693879d6b3

View File

@@ -180,10 +180,10 @@
<div
style="display: flex; justify-content: center; width: 100%"
v-if="
data.essayQuestionVoList?.length ||
data.multipleStemVoList?.length ||
data.scoringQuestionVoList?.length ||
data.singleStemVoList?.length
data?.essayQuestionVoList?.length ||
data?.multipleStemVoList?.length ||
data?.scoringQuestionVoList?.length ||
data?.singleStemVoList?.length
"
>
<div
@@ -300,22 +300,23 @@ const { data } = useRequest(
type,
chapterOrStageId,
targetId: infoId ? infoId : 0,
},(res)=>{
if (res.code === 6) {
},
(e) => {
if (e.code === 6) {
router.push({
path: "/NotProject2",
});
}
if(res.data.projectInfoList.length == 0){
res.data.projectInfoList=[
if(e.data && e.data.projectInfoList.length == 0){
e.data.projectInfoList=[
{teacherName: '', courseName: '', projectName: ''}
]
res.data.falseS = false
e.data.falseS = false
}else{
res.data.falseS = true
if(e.data){
e.data.falseS = true
}
}
},
(e) => {
useRequest(
checkStudentExist,
{