From b469877502e49b0b9893eb89f51d083be08b77f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 18 Mar 2020 00:00:00 +0800 Subject: [PATCH] =?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/courses/Video/Video.js | 4 ++-- .../src/modules/user/usersInfo/video/VideoInReviewItem.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/Video/Video.js b/public/react/src/modules/courses/Video/Video.js index e90156a56..cc4564897 100644 --- a/public/react/src/modules/courses/Video/Video.js +++ b/public/react/src/modules/courses/Video/Video.js @@ -255,7 +255,7 @@ class Video extends Component {
{ videos.map((item, key) => { - console.log(course_identity > 2 && item.user_id === user_id) + //console.log(course_identity > 2 && item.user_id === user_id) return ( this.props.Setmyktid(id)} @@ -270,7 +270,7 @@ class Video extends Component { operation={operation || item.user_id === user_id} deleteVideo={(admin || item.user_id === user_id) ? this.deleteVideo : undefined} moveVideo={videoData && videoData.has_category && flagMove ? () => this.moveVideo(item.id, (course_identity > 2 && item.user_id !== user_id)) : undefined} - + > ) diff --git a/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js b/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js index fe19c57e6..519b719f9 100644 --- a/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js +++ b/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js @@ -21,7 +21,7 @@ const clipboardMap = {} function VideoInReviewItem (props) { const theme = useContext(ThemeContext); const { history, file_url , play_url , cover_url , transcoded , title, created_at, published_at, isReview, id - , onEditVideo, onMaskClick, getCopyText, showNotification,vv,play_duration,operation , deleteVideo , moveVideo ,link, people_num,total_time} = props; + , onEditVideo, onMaskClick, getCopyText, showNotification,vv,play_duration,operation , deleteVideo , moveVideo ,link, people_num,total_time,Setmyktid} = props; useEffect(()=> { if (!isReview) { _clipboard = new ClipboardJS(`.copybtn_item_${id}`); @@ -48,7 +48,7 @@ function VideoInReviewItem (props) { history.push(`/users/${username}/videos/upload`) } const imgUrl = (!transcoded && !link) ? defaultImg : (cover_url || defaultImg); - + console.log(props) return (
@@ -95,7 +95,7 @@ function VideoInReviewItem (props) { { props&&props.mykt!=undefined?isReview !== true && moveVideo && - moveVideo(props)} + Setmyktid(props.id,props.title)} style={{ marginTop: '1px', display: 'inline-block'}} > :""