修复设置自定义通知

This commit is contained in:
whyour
2022-09-20 18:00:36 +08:00
parent 1ebcfd8001
commit e08f0cd308
6 changed files with 68 additions and 68 deletions
+1 -5
View File
@@ -13,15 +13,11 @@ const NotificationSetting = ({ data }: any) => {
const [form] = Form.useForm();
const handleOk = (values: any) => {
const { type, webhookBody, webhookContentType } = values;
const { type } = values;
if (type == 'closed') {
values.type = '';
}
if (type === 'webhook') {
values.webhookHeaders = { ...parseHeaders(values.webhookHeaders) };
values.webhookBody = parseBody(webhookBody, webhookContentType);
}
request
.put(`${config.apiPrefix}user/notification`, {
data: {