Commit 5e2c283c by wufan

Merge branch 'feature/wufan/20210701/course-B-reform' into dev

parents 8f1de292 cb312b50
......@@ -305,8 +305,6 @@ class AddVideoCourse extends React.Component {
// 选择视频
handleSelectVideo = (addFolderIds,selectedFileList) => {
console.log("file-----",selectedFileList);
this.setState({
showSelectFileModal: false
})
......@@ -314,6 +312,10 @@ class AddVideoCourse extends React.Component {
let { courseChapterList } = this.state;
let _courseChapterList = [...courseChapterList];
if(selectedFileList.length + courseChapterList.length > 20){
message.warning(`最多只能上传20个文件`);
return;
}
selectedFileList.map((file,index) => {
const { ossUrl, resourceId, folderName, folderFormat, folderSize } = file;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment