课件上传组件优化

This commit is contained in:
unknown 2023-08-01 11:21:07 +08:00
parent e95343fe0a
commit 54b55d8424

View File

@ -61,6 +61,7 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
let extension: any = file.name.split(".");
extension = extension[extension.length - 1];
if (
extension === "rar" ||
file.type ===
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
file.type === "application/msword" ||