|
@@ -146,7 +146,7 @@ export async function doSwitchGroup(markerId: number) {
|
|
|
|
|
|
/** 评卷用户选择试卷的问题类型 */
|
|
|
export async function doProblemType(problemId: number) {
|
|
|
- const markResult = findCurrentTaskMarkResult();
|
|
|
+ let markResult = findCurrentTaskMarkResult();
|
|
|
if (markResult) {
|
|
|
markResult.problem = true;
|
|
|
markResult.problemTypeId = problemId;
|
|
@@ -157,6 +157,9 @@ export async function doProblemType(problemId: number) {
|
|
|
markResult.trackList = [];
|
|
|
|
|
|
markResult.spent = Date.now() - markResult.__markStartTime;
|
|
|
+ markResult = { ...markResult };
|
|
|
+ // @ts-ignore
|
|
|
+ markResult.__markStartTime = undefined;
|
|
|
}
|
|
|
return httpApp.post("/mark/saveTask", markResult);
|
|
|
}
|