mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 20:54:10 +08:00
资源课件上传组件
This commit is contained in:
parent
7a31519501
commit
31726bb867
@ -60,7 +60,6 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
|
|||||||
beforeUpload: async (file: File) => {
|
beforeUpload: async (file: File) => {
|
||||||
let extension: any = file.name.split(".");
|
let extension: any = file.name.split(".");
|
||||||
extension = extension[extension.length - 1];
|
extension = extension[extension.length - 1];
|
||||||
console.log(file.type);
|
|
||||||
if (
|
if (
|
||||||
file.type ===
|
file.type ===
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user