mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 03:14:11 +08:00
资源课件上传组件
This commit is contained in:
parent
7a31519501
commit
31726bb867
@ -60,7 +60,6 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
|
||||
beforeUpload: async (file: File) => {
|
||||
let extension: any = file.name.split(".");
|
||||
extension = extension[extension.length - 1];
|
||||
console.log(file.type);
|
||||
if (
|
||||
file.type ===
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user