|
@@ -112,11 +112,20 @@ export async function checkExamInProgress(): Promise<boolean> {
|
|
}
|
|
}
|
|
} else if (content) {
|
|
} else if (content) {
|
|
const msg = $message.info("正在进入断点续考...");
|
|
const msg = $message.info("正在进入断点续考...");
|
|
- void router
|
|
|
|
|
|
+ store.increaseGlobalMaskCount("checkExamInProgress");
|
|
|
|
+ store.spinMessage = "正在进入断点续考...";
|
|
|
|
+ await new Promise((res) => setTimeout(res, 1.5 * 1000));
|
|
|
|
+ await router
|
|
.push(
|
|
.push(
|
|
`/online-exam/exam/${content.examId}/examRecordData/${content.examRecordDataId}/order/1`
|
|
`/online-exam/exam/${content.examId}/examRecordData/${content.examRecordDataId}/order/1`
|
|
)
|
|
)
|
|
- .then(() => msg.destroy());
|
|
|
|
|
|
+ .then(() => msg.destroy())
|
|
|
|
+ .finally(() => {
|
|
|
|
+ setTimeout(
|
|
|
|
+ () => store.decreaseGlobalMaskCount("checkExamInProgress"),
|
|
|
|
+ 3 * 1000
|
|
|
|
+ );
|
|
|
|
+ });
|
|
logger({
|
|
logger({
|
|
cnl: ["local", "server"],
|
|
cnl: ["local", "server"],
|
|
key: "断点续考",
|
|
key: "断点续考",
|