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