diff --git a/src/views/DoubleCalibrationRecord.vue b/src/views/DoubleCalibrationRecord.vue index 22c7adb..df62353 100644 --- a/src/views/DoubleCalibrationRecord.vue +++ b/src/views/DoubleCalibrationRecord.vue @@ -370,6 +370,7 @@ export default { if (!this.isFullscreen()) { this.fullscreenRequiredDialog = true; + this.attemptAutoFullscreen(); } }, beforeDestroy() { @@ -434,6 +435,15 @@ export default { this.fullscreenRequiredDialog = false; } }, + attemptAutoFullscreen() { + this.requestFullscreen(document.documentElement) + .then(() => { + if (this.isFullscreen()) { + this.fullscreenRequiredDialog = false; + } + }) + .catch(() => {}); + }, onFullscreenChange() { if (this.calibrationStarted && !this.calibFinished && !this.isFullscreen()) { this.fullscreenRequiredDialog = true;