From bf3924f3891e533496d7c7940a7559c7d2b4f39b Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Tue, 10 Mar 2020 17:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=81=9C=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/user/usersInfo/video/InfosVideo.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/user/usersInfo/video/InfosVideo.js b/public/react/src/modules/user/usersInfo/video/InfosVideo.js index 8f2f9dab3..05d726628 100644 --- a/public/react/src/modules/user/usersInfo/video/InfosVideo.js +++ b/public/react/src/modules/user/usersInfo/video/InfosVideo.js @@ -67,7 +67,7 @@ function InfoVideo(props) { const { showNotification, history } = props; const username = props.match.params.username; const { user } = props; - console.log(user); + function toUpload() { if (props.current_user.admin || (props.current_user.is_teacher && props.checkIfProfessionalCertification())) { history.push(`/users/${username}/videos/upload`) @@ -144,7 +144,8 @@ function InfoVideo(props) { useEffect(() => { if (videoModalObj.visible == false) { // 关闭视频 - videoEl.current && videoEl.current.pause() + videoEl.current && videoEl.current.pause(); + videoId = {}; if (_clipboard) { _clipboard.destroy(); _clipboard = null; @@ -266,7 +267,7 @@ function InfoVideo(props) { className="showVideoModal" width={800 - 1} > - + {videoModalObj.visible && }