diff --git a/src/compenents/upload-courseware-button/index.tsx b/src/compenents/upload-courseware-button/index.tsx index d4dd9cb..64435c0 100644 --- a/src/compenents/upload-courseware-button/index.tsx +++ b/src/compenents/upload-courseware-button/index.tsx @@ -71,6 +71,7 @@ export const UploadCoursewareButton = (props: PropsInterface) => { file.type === "application/x-zip-compressed" || file.type === "application/octet-stream" || file.type === "application/zip" || + file.type === "application/x-rar" || file.type === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" || file.type === "application/vnd.ms-excel" || @@ -188,7 +189,9 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
请将文件拖拽到此处上传
++ 支持word、excel、ppt、pdf、zip、txt格式文件 +
支持一次上传多个文件
diff --git a/src/pages/course/compenents/create.tsx b/src/pages/course/compenents/create.tsx index c67d186..cba360e 100644 --- a/src/pages/course/compenents/create.tsx +++ b/src/pages/course/compenents/create.tsx @@ -84,6 +84,8 @@ export const CourseCreate: React.FC