资源课件上传组件

This commit is contained in:
unknown 2023-07-29 09:08:29 +08:00
parent 7a31519501
commit 31726bb867

View File

@ -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" ||