退出全屏 ,需要水印11

This commit is contained in:
gengxin
2025-03-11 11:45:34 +08:00
parent 6536e36857
commit 51a8da4bdb
2 changed files with 4 additions and 21 deletions

View File

@@ -619,7 +619,9 @@ export default {
*/
handleFullscreenChange() {
console.log("handleFullscreenChange gx this.isFullScreen()",this.isFullScreen())
if(!this.isFullScreen()){
console.log("handleFullscreenChange gx this.isFullscreen",this.isFullscreen)
if(this.isFullscreen){
this.isFullscreen = !!document.fullscreenElement;
if (!this.isFullscreen) {
// 退出全屏后的逻辑(如暂停视频、更新 UI 等)