diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 043c0f78d..fee6eb724 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -46,7 +46,7 @@ debugType="admin"; // 老师 // debugType="teacher"; // 学生 -//debugType="student"; +// debugType="student"; diff --git a/public/react/src/modules/courses/Video/VideoIndex.js b/public/react/src/modules/courses/Video/VideoIndex.js index d8e600f4c..e2b3a0841 100644 --- a/public/react/src/modules/courses/Video/VideoIndex.js +++ b/public/react/src/modules/courses/Video/VideoIndex.js @@ -268,6 +268,9 @@ class VideoIndex extends Component { const newOperation = flag; const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification()); + const isAdmin = this.props&& this.props.isAdmin(); + + return ( + + { + videoId ? + "" + : + this.statisticsy(true)} + >统计 + } + + { newOperation ? @@ -332,13 +346,7 @@ class VideoIndex extends Component { onClick={() => this.editDir(videoData && videoData.category_name, videoId)} className={"ml30 font-16"}>目录重命名 : - - - this.statisticsy(true)} - >统计 - 新建目录 - + 新建目录 } : "" } + + + + : 添加直播