mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-15 07:36:01 +08:00
修复修改任务后没有充值模态框字段
This commit is contained in:
@@ -196,6 +196,7 @@ const Config = () => {
|
||||
};
|
||||
|
||||
const addCookie = () => {
|
||||
setEditedCookie(null as any);
|
||||
setIsModalVisible(true);
|
||||
};
|
||||
|
||||
|
||||
@@ -51,6 +51,8 @@ const CookieModal = ({
|
||||
useEffect(() => {
|
||||
if (cookie) {
|
||||
form.setFieldsValue({ cookie });
|
||||
} else {
|
||||
form.resetFields();
|
||||
}
|
||||
}, [cookie]);
|
||||
|
||||
@@ -58,6 +60,7 @@ const CookieModal = ({
|
||||
<Modal
|
||||
title={cookie ? '编辑Cookie' : '新建Cookie'}
|
||||
visible={visible}
|
||||
forceRender
|
||||
onOk={() => {
|
||||
form
|
||||
.validateFields()
|
||||
|
||||
@@ -151,6 +151,7 @@ const Crontab = () => {
|
||||
};
|
||||
|
||||
const addCron = () => {
|
||||
setEditedCron(null as any);
|
||||
setIsModalVisible(true);
|
||||
};
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ const CronModal = ({
|
||||
useEffect(() => {
|
||||
if (cron) {
|
||||
form.setFieldsValue(cron);
|
||||
} else {
|
||||
form.resetFields();
|
||||
}
|
||||
}, [cron]);
|
||||
|
||||
@@ -46,6 +48,7 @@ const CronModal = ({
|
||||
<Modal
|
||||
title={cron ? '编辑定时' : '新建定时'}
|
||||
visible={visible}
|
||||
forceRender
|
||||
onOk={() => {
|
||||
form
|
||||
.validateFields()
|
||||
|
||||
Reference in New Issue
Block a user