修改弹框表单逻辑

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
+1 -1
View File
@@ -39,11 +39,11 @@ const SubscriptionModal = ({
);
if (code === 200) {
message.success(subscription ? '更新订阅成功' : '新建订阅成功');
handleCancel(data);
} else {
message.error(data);
}
setLoading(false);
handleCancel(data);
} catch (error: any) {
setLoading(false);
}