mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-07 05:18:07 +08:00
视频播放页面屏蔽右键菜单
This commit is contained in:
parent
01d2cf4e9b
commit
29630ec1ee
@ -27,6 +27,11 @@ const CoursePalyPage = () => {
|
||||
useEffect(() => {
|
||||
getCourse();
|
||||
getDetail();
|
||||
document.oncontextmenu = function (e) {
|
||||
/*屏蔽浏览器默认右键事件*/
|
||||
e = e || window.event;
|
||||
return false;
|
||||
};
|
||||
}, [params.courseId, params.hourId]);
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user