From 7fbf92e31e4d73a535302b700de6bdc4b9fa3f9e Mon Sep 17 00:00:00 2001 From: dinglink <837816638@qq.com> Date: Thu, 26 Mar 2020 01:31:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/user/usersInfo/video/InfosVideo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/user/usersInfo/video/InfosVideo.js b/public/react/src/modules/user/usersInfo/video/InfosVideo.js index 907243600..afbf928cc 100644 --- a/public/react/src/modules/user/usersInfo/video/InfosVideo.js +++ b/public/react/src/modules/user/usersInfo/video/InfosVideo.js @@ -11,6 +11,7 @@ import HeadlessModal from '../common/HeadlessModal' import ClipboardJS from 'clipboard' import VideoPlay from '../../../courses/Video/video-play'; import { logWatchHistory } from '../../../../services/video-service'; +import { Base64 } from 'js-base64'; function useModal(initValue) { const [visible, setVisible] = useState(initValue) @@ -250,7 +251,7 @@ function InfoVideo(props) { }); } function getCopyText(file_url, cover_url) { - return `` + return `` } const _inputValue = getCopyText(videoId.file_url, videoId.cover_url); @@ -268,7 +269,7 @@ function InfoVideo(props) { className="showVideoModal" width={800 - 1} > - {videoModalObj.visible && } + {videoModalObj.visible && }
Date: Thu, 26 Mar 2020 01:37:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/user/usersInfo/video/InfosVideo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/user/usersInfo/video/InfosVideo.js b/public/react/src/modules/user/usersInfo/video/InfosVideo.js index afbf928cc..daf974cd2 100644 --- a/public/react/src/modules/user/usersInfo/video/InfosVideo.js +++ b/public/react/src/modules/user/usersInfo/video/InfosVideo.js @@ -251,8 +251,10 @@ function InfoVideo(props) { }); } function getCopyText(file_url, cover_url) { - return `` - } + if(file_url){ + return `` + } + } const _inputValue = getCopyText(videoId.file_url, videoId.cover_url); const sorts = sortKey.split('-')