mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 23:34:08 +08:00
上传视频窗口的缓存清除
This commit is contained in:
parent
00f3767c5f
commit
b15766ea33
@ -81,7 +81,7 @@ export const UploadVideoButton = (props: PropsInterface) => {
|
|||||||
minioMergeVideo(
|
minioMergeVideo(
|
||||||
item.filename,
|
item.filename,
|
||||||
item.uploadId,
|
item.uploadId,
|
||||||
props.categoryIds.join(','),
|
props.categoryIds.join(","),
|
||||||
item.name,
|
item.name,
|
||||||
"mp4",
|
"mp4",
|
||||||
item.size,
|
item.size,
|
||||||
@ -119,6 +119,12 @@ export const UploadVideoButton = (props: PropsInterface) => {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const closeWin = () => {
|
||||||
|
setShowModal(false);
|
||||||
|
setFileList([]);
|
||||||
|
props.onUpdate();
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
@ -136,14 +142,12 @@ export const UploadVideoButton = (props: PropsInterface) => {
|
|||||||
title="上传视频"
|
title="上传视频"
|
||||||
open={true}
|
open={true}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setShowModal(false);
|
closeWin();
|
||||||
props.onUpdate();
|
|
||||||
}}
|
}}
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
closable={false}
|
closable={false}
|
||||||
onOk={() => {
|
onOk={() => {
|
||||||
setShowModal(false);
|
closeWin();
|
||||||
props.onUpdate();
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Row gutter={[0, 10]}>
|
<Row gutter={[0, 10]}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user