|
@@ -71,6 +71,8 @@ export const useSubjectCheck = (currentSubject: ComputedRef<any>, nextSubject: (
|
|
|
|
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
|
|
+ //状态2是错误的
|
|
|
|
+ isAllTrue = false
|
|
status = 2
|
|
status = 2
|
|
}
|
|
}
|
|
|
|
|
|
@@ -81,12 +83,16 @@ export const useSubjectCheck = (currentSubject: ComputedRef<any>, nextSubject: (
|
|
status = 0;
|
|
status = 0;
|
|
}
|
|
}
|
|
if (currentSubject.value.userAnswer === val) {
|
|
if (currentSubject.value.userAnswer === val) {
|
|
|
|
+ //状态2是错误的
|
|
|
|
+ isAllTrue = false
|
|
status += 2;
|
|
status += 2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
return { opt: val, status };
|
|
return { opt: val, status };
|
|
});
|
|
});
|
|
|
|
+ isAllTrue?trueNum.value++:falseNum.value++;
|
|
|
|
+
|
|
|
|
|
|
if (JSON.stringify(currentSubject.value.answer) == JSON.stringify(currentSubject.value.userAnswer)) {
|
|
if (JSON.stringify(currentSubject.value.answer) == JSON.stringify(currentSubject.value.userAnswer)) {
|
|
//答案正确
|
|
//答案正确
|
|
@@ -115,7 +121,7 @@ export const useSubjectCheck = (currentSubject: ComputedRef<any>, nextSubject: (
|
|
skillsShow.value = true;
|
|
skillsShow.value = true;
|
|
}
|
|
}
|
|
|
|
|
|
- falseNum.value++;
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|