From 54226bdf664b3a35ee885d37e63277d1e5ba0940 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Tue, 10 Mar 2020 13:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/Video/Video.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/Video/Video.js b/public/react/src/modules/courses/Video/Video.js index 8dbd5ee03..e9a90c918 100644 --- a/public/react/src/modules/courses/Video/Video.js +++ b/public/react/src/modules/courses/Video/Video.js @@ -203,6 +203,7 @@ class Video extends Component { const operation = admin || business; const {course_identity} = this.props.coursedata; const flagMove = parseInt(course_identity) < 5; + return (
0 ? +

{videoData && videoData.count} 个视频

{ videos.map((item, key) => { + console.log(course_identity > 2 && item.user_id === user_id) return ( this.moveVideo(item.id,(course_identity > 2 && item.user_id === user_id)):undefined} + moveVideo={videoData && videoData.has_category && flagMove ? ()=>this.moveVideo(item.id,(course_identity > 2 && item.user_id !== user_id)):undefined} > )