Commit 85c7dc24 authored by zhu-mingye's avatar zhu-mingye

Fix metadata switching error

parent f0be51d5
......@@ -69,6 +69,11 @@ const StudioMetaData = (props: any) => {
}
}
const cancelHandle = () => {
setRow(undefined);
setModalVisit(false);
}
return (
<>
<Select
......@@ -94,10 +99,12 @@ const StudioMetaData = (props: any) => {
title={row?.key}
visible={modalVisit}
width={1000}
onCancel={()=>{
cancelHandle();
}}
footer={[
<Button key="back" onClick={() => {
setRow(undefined);
setModalVisit(false);
cancelHandle();
}}>
关闭
</Button>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment