mirror of
https://github.com/PlayEdu/backend
synced 2025-11-19 01:37:44 +08:00
资源视频预览播放完后关闭弹窗组件
This commit is contained in:
@@ -35,6 +35,7 @@ export const VideoPlayDialog: React.FC<PropInterface> = ({
|
||||
});
|
||||
window.player.on("ended", () => {
|
||||
window.player && window.player.destroy();
|
||||
onCancel();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user