mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复设置自定义通知
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user