|
|
@@ -159,7 +159,9 @@ export default {
|
|
|
mounted() {
|
|
|
this.timeFn()
|
|
|
this.cancelLoading()
|
|
|
- this.autoFullScreen()
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.autoFullScreen()
|
|
|
+ })
|
|
|
// 添加全屏状态变化监听
|
|
|
document.addEventListener('fullscreenchange', this.handleFullScreenChange);
|
|
|
},
|
|
|
@@ -209,11 +211,11 @@ export default {
|
|
|
autoFullScreen() {
|
|
|
// 如果已经全屏,则不再执行
|
|
|
if (this.isFullScreen) return;
|
|
|
-
|
|
|
+ this.fullScreen();
|
|
|
// 延迟3秒后自动全屏
|
|
|
- setTimeout(() => {
|
|
|
+ /*setTimeout(() => {
|
|
|
this.fullScreen();
|
|
|
- }, 3000);
|
|
|
+ }, 3000);*/
|
|
|
},
|
|
|
handleBlur(val) {
|
|
|
sessionStorage.setItem('li_code', val);
|