Commit 6379bb7a by wufan

fix:修复课程封面未选择报错问题

parent 281f0212
...@@ -481,6 +481,10 @@ class AddVideoCourse extends React.Component { ...@@ -481,6 +481,10 @@ class AddVideoCourse extends React.Component {
}) })
} }
handleSelectCover = (file) => { handleSelectCover = (file) => {
if(!file){
message.info("请选择文件!");
return;
}
this.setState({ this.setState({
visible: true, visible: true,
imageFile:file imageFile: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