|
@@ -61,15 +61,12 @@ export default function useMarkSubmit() {
|
|
|
|
|
|
const problemQs = markStore.currentTask.questionList
|
|
|
.filter((q) => q.problem)
|
|
|
- .map((q) => q.mainNumber + "-" + q.subNumber);
|
|
|
+ .map((q, i) => i);
|
|
|
const questions = markStore.currentTask.questionList.filter(
|
|
|
(q) => !q.problem
|
|
|
);
|
|
|
const scoreList = markResult.scoreList.filter(
|
|
|
- (_, i) =>
|
|
|
- !problemQs.includes(
|
|
|
- questions[i].mainNumber + "-" + questions[i].subNumber
|
|
|
- )
|
|
|
+ (_, i) => !problemQs.includes(i)
|
|
|
);
|
|
|
if (
|
|
|
scoreList.length !== questions.length ||
|