修改弹框表单逻辑

This commit is contained in:
whyour
2022-09-16 00:28:04 +08:00
parent 967071ad4e
commit 6e56a55f6f
7 changed files with 58 additions and 39 deletions
+3 -1
View File
@@ -65,11 +65,13 @@ const ViewCreateModal = ({
data: view ? { ...values, id: view.id } : values,
},
);
if (code !== 200) {
message.error(data);
} else {
handleCancel(data);
}
setLoading(false);
handleCancel(data);
} catch (error: any) {
setLoading(false);
}