全屏操作时,出现以下错误:screenfull.js?4657:99 Uncaught (in promise) TypeError: Failed to execute 'requestFullscreen' on 'Element': parameter 1 ('options') is not an object.
解决方法:在node-modules中找到screenfull.js,修改以下代码
if (/ Version/5.1(?:.d+)? Safari//.test(navigator.userAgent)) { elem[request](); } else { if (keyboardAllowed) { elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT); }else{ elem[request]({navigationUI:'auto'}); } }