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

Fix metadata switching error

parent f0be51d5
...@@ -69,6 +69,11 @@ const StudioMetaData = (props: any) => { ...@@ -69,6 +69,11 @@ const StudioMetaData = (props: any) => {
} }
} }
const cancelHandle = () => {
setRow(undefined);
setModalVisit(false);
}
return ( return (
<> <>
<Select <Select
...@@ -94,10 +99,12 @@ const StudioMetaData = (props: any) => { ...@@ -94,10 +99,12 @@ const StudioMetaData = (props: any) => {
title={row?.key} title={row?.key}
visible={modalVisit} visible={modalVisit}
width={1000} width={1000}
onCancel={()=>{
cancelHandle();
}}
footer={[ footer={[
<Button key="back" onClick={() => { <Button key="back" onClick={() => {
setRow(undefined); cancelHandle();
setModalVisit(false);
}}> }}>
关闭 关闭
</Button>, </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