diff --git a/public/react/src/modules/courses/Video/video-play/index.jsx b/public/react/src/modules/courses/Video/video-play/index.jsx index b3d20fd8e..bfa56c938 100644 --- a/public/react/src/modules/courses/Video/video-play/index.jsx +++ b/public/react/src/modules/courses/Video/video-play/index.jsx @@ -45,7 +45,7 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => { const log = useCallback((callback, isEnd = false) => { let params = { - point: el.currentTime.currentTime + point: el.current.currentTime } if (logId) { params['log_id'] = logId diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index 2a650e3d0..3e8dc1cd8 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -397,7 +397,7 @@ class TPMIndex extends Component { newathArray:list }) } - render() { + render() { let url = window.location.href; let flag =false; @@ -671,7 +671,7 @@ class TPMIndex extends Component { ); - } + } } export default SnackbarHOC() (TPMIndexHOC ( TPMIndex ));