|
@@ -69,13 +69,14 @@ export function useRealSubmitPaper(examId: number, examRecordDataId: number) {
|
|
store.spinMessage = "正在交卷,请耐心等待...";
|
|
store.spinMessage = "正在交卷,请耐心等待...";
|
|
logger({ cnl: ["server"], act: "正在交卷,请耐心等待..." });
|
|
logger({ cnl: ["server"], act: "正在交卷,请耐心等待..." });
|
|
let delay = 0;
|
|
let delay = 0;
|
|
- const oldSnapCount = store.exam.compareResultMap.size;
|
|
|
|
|
|
+ const oldSnapCount = store.exam.compareResultMap?.size;
|
|
if (store.exam.faceCheckEnabled) {
|
|
if (store.exam.faceCheckEnabled) {
|
|
logger({ cnl: ["server"], act: "交卷前抓拍" });
|
|
logger({ cnl: ["server"], act: "交卷前抓拍" });
|
|
doSnap();
|
|
doSnap();
|
|
await new Promise((resolve) => setTimeout(resolve, 3 * 1000));
|
|
await new Promise((resolve) => setTimeout(resolve, 3 * 1000));
|
|
- const newSnapCount = store.exam.compareResultMap.size;
|
|
|
|
- if (newSnapCount - oldSnapCount === 0) {
|
|
|
|
|
|
+ // 根据线上错误排查:可能已经退出页面了,没有数据了
|
|
|
|
+ const newSnapCount = store.exam.compareResultMap?.size;
|
|
|
|
+ if (store.exam.compareResultMap && newSnapCount - oldSnapCount === 0) {
|
|
// 给抓拍照片多2秒处理时间
|
|
// 给抓拍照片多2秒处理时间
|
|
delay = 8;
|
|
delay = 8;
|
|
logger({ cnl: ["server"], act: "交卷前抓拍", dtl: "3秒内未上传完毕" });
|
|
logger({ cnl: ["server"], act: "交卷前抓拍", dtl: "3秒内未上传完毕" });
|