From 7deb34fd283357a2243a2481139e3e8a35f56d97 Mon Sep 17 00:00:00 2001 From: none Date: Tue, 7 Mar 2023 11:23:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E9=A2=91=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/upload-video-button/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 && (