From 4e3d6b09696e7d4c261c7a8e110928a896836144 Mon Sep 17 00:00:00 2001 From: unknown <18119604035@163.com> Date: Sun, 30 Jul 2023 12:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/upload-courseware-button/index.tsx | 5 ++++- src/pages/course/compenents/create.tsx | 7 ++++++- src/pages/system/adminlog/index.tsx | 11 +++-------- 3 files changed, 13 insertions(+), 10 deletions(-) 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