mirror of
https://github.com/PlayEdu/backend
synced 2025-07-26 01:13:20 +08:00
课件上传组件优化
This commit is contained in:
parent
e95343fe0a
commit
54b55d8424
@ -61,6 +61,7 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
|
|||||||
let extension: any = file.name.split(".");
|
let extension: any = file.name.split(".");
|
||||||
extension = extension[extension.length - 1];
|
extension = extension[extension.length - 1];
|
||||||
if (
|
if (
|
||||||
|
extension === "rar" ||
|
||||||
file.type ===
|
file.type ===
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
|
||||||
file.type === "application/msword" ||
|
file.type === "application/msword" ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user