From 16ffef37260822329ab6f796f9606d0da42c41f9 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期三, 01 一月 2025 18:06:24 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/books/aviationSafety/view/components/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/books/aviationSafety/view/components/index.vue b/src/books/aviationSafety/view/components/index.vue index b4708a4..322a9e8 100644 --- a/src/books/aviationSafety/view/components/index.vue +++ b/src/books/aviationSafety/view/components/index.vue @@ -927,7 +927,11 @@ const bottomGap = playVudio.getBoundingClientRect().bottom; const topGap = playVudio.getBoundingClientRect().top; if (bottomGap < 0 || topGap > window.innerHeight) { - playVudio.requestPictureInPicture(); + try { + if(playVudio.readyState) playVudio.requestPictureInPicture(); + } catch (error) { + console.log(error,"灏忕獥閿欒error"); + } } } }, -- Gitblit v1.9.1