|
@@ -106,8 +106,7 @@ export async function saveTask() {
|
|
|
if (markResult) {
|
|
|
markResult.specialTagList = [];
|
|
|
markResult.problem = false;
|
|
|
- if (markResult.spent > 24 * 60 * 60 * 1000)
|
|
|
- markResult.spent = Date.now() - markResult.spent;
|
|
|
+ markResult.spent = Date.now() - markResult.__markStartTime;
|
|
|
|
|
|
return httpApp.post("/mark/saveTask", markResult);
|
|
|
}
|
|
@@ -157,8 +156,7 @@ export async function doProblemType(problemId: number) {
|
|
|
markResult.specialTagList = [];
|
|
|
markResult.trackList = [];
|
|
|
|
|
|
- if (markResult.spent > 24 * 60 * 60 * 1000)
|
|
|
- markResult.spent = Date.now() - markResult.spent;
|
|
|
+ markResult.spent = Date.now() - markResult.__markStartTime;
|
|
|
}
|
|
|
return httpApp.post("/mark/saveTask", markResult);
|
|
|
}
|