修改弹框表单逻辑

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
@@ -52,11 +52,13 @@ const DependenceModal = ({
data: payload,
},
);
if (code !== 200) {
message.error(data);
} else {
handleCancel(data);
}
setLoading(false);
handleCancel(data);
} catch (error) {
setLoading(false);
}