|
@@ -24,8 +24,8 @@ const {
|
|
examRecordDataId = -1,
|
|
examRecordDataId = -1,
|
|
showRecognizeButton = false,
|
|
showRecognizeButton = false,
|
|
} = defineProps<{
|
|
} = defineProps<{
|
|
- width: string;
|
|
|
|
- height: string;
|
|
|
|
|
|
+ width: string | number;
|
|
|
|
+ height: string | number;
|
|
showRecognizeButton: boolean;
|
|
showRecognizeButton: boolean;
|
|
snapId?: number;
|
|
snapId?: number;
|
|
examRecordDataId?: number;
|
|
examRecordDataId?: number;
|
|
@@ -217,7 +217,7 @@ async function getSnapShot(compareSync: boolean): Promise<Blob | unknown> {
|
|
context?.drawImage(video, 0, 0, 220, 165);
|
|
context?.drawImage(video, 0, 0, 220, 165);
|
|
|
|
|
|
canvas.toBlob((blob) => resolve(blob!), "image/png", 0.95);
|
|
canvas.toBlob((blob) => resolve(blob!), "image/png", 0.95);
|
|
- })
|
|
|
|
|
|
+ });
|
|
// .finally(() => void videoStartPlay()); // finally 会在返回前执行,满足我们的要求
|
|
// .finally(() => void videoStartPlay()); // finally 会在返回前执行,满足我们的要求
|
|
}
|
|
}
|
|
|
|
|