Commit 028dbe6b by zhaochengxiang

资产打标签

parent 13ae2ddd
...@@ -182,7 +182,7 @@ const AssetTagModal = (props) => { ...@@ -182,7 +182,7 @@ const AssetTagModal = (props) => {
}, },
callback: () => { callback: () => {
setConfirmLoading(false); setConfirmLoading(false);
form?.resetFields(); reset();
onCancel && onCancel(true); onCancel && onCancel(true);
}, },
error: () => { error: () => {
...@@ -206,6 +206,11 @@ const AssetTagModal = (props) => { ...@@ -206,6 +206,11 @@ const AssetTagModal = (props) => {
} }
} }
const reset = () => {
setConfirmLoading(false);
form?.resetFields();
}
const formItemLayout = { const formItemLayout = {
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
...@@ -225,7 +230,7 @@ const AssetTagModal = (props) => { ...@@ -225,7 +230,7 @@ const AssetTagModal = (props) => {
visible={ visible } visible={ visible }
width={ 600 } width={ 600 }
onCancel={() => { onCancel={() => {
form?.resetFields(); reset();
onCancel && onCancel(); onCancel && onCancel();
} } } }
footer={ footer={
......
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