|
@@ -650,10 +650,15 @@ export function useExamTest() {
|
|
|
interfaceErrVisible.value = true
|
|
|
return
|
|
|
}
|
|
|
- //多余100道题目的切割
|
|
|
- if(res.data.rows.length>100){
|
|
|
+ //科目一多余100道题目的切割
|
|
|
+ if(Number(router.currentRoute.value.query.subject)==1&&res.data.rows.length>100){
|
|
|
res.data.rows.splice(100)
|
|
|
|
|
|
+ }
|
|
|
+ //科目四多余50题切割
|
|
|
+ if(Number(router.currentRoute.value.query.subject)==4&&res.data.rows.length>50){
|
|
|
+ res.data.rows.splice(50)
|
|
|
+
|
|
|
}
|
|
|
list.value = res.data.rows;
|
|
|
}).catch(err=>{
|