mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
重构前端错误提示
This commit is contained in:
@@ -32,8 +32,6 @@ const CronModal = ({
|
||||
if (code === 200) {
|
||||
message.success(cron ? '更新Cron成功' : '新建Cron成功');
|
||||
handleCancel(data);
|
||||
} else {
|
||||
message.error(data);
|
||||
}
|
||||
setLoading(false);
|
||||
} catch (error: any) {
|
||||
@@ -142,8 +140,6 @@ const CronLabelModal = ({
|
||||
action === 'post' ? '添加Labels成功' : '删除Labels成功',
|
||||
);
|
||||
handleCancel(true);
|
||||
} else {
|
||||
message.error(data);
|
||||
}
|
||||
setLoading(false);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user