diff --git a/src/compenents/upload-video-button/index.tsx b/src/compenents/upload-video-button/index.tsx index 0ea5e11..937c4ff 100644 --- a/src/compenents/upload-video-button/index.tsx +++ b/src/compenents/upload-video-button/index.tsx @@ -6,14 +6,13 @@ import { Modal, Progress, Row, - Space, Table, Tag, Upload, } from "antd"; import Dragger from "antd/es/upload/Dragger"; -import { useEffect, useRef, useState } from "react"; -import { generateUUID, getToken } from "../../utils"; +import { useRef, useState } from "react"; +import { generateUUID } from "../../utils"; import { minioUploadId } from "../../api/upload"; import { UploadChunk } from "../../js/minio-upload-chunk"; import { storeResource } from "../../api/resource"; @@ -150,9 +149,14 @@ export const UploadVideoButton = (props: PropsInterface) => { open={true} onCancel={() => { setShowModal(false); + props.onUpdate(); }} maskClosable={false} closable={false} + onOk={() => { + setShowModal(false); + props.onUpdate(); + }} > @@ -210,7 +214,7 @@ export const UploadVideoButton = (props: PropsInterface) => { record.isSuc === false && record.isErr === false && (