mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
增加PushMe消息通道 (#2018),修复系统设置保存通知
This commit is contained in:
@@ -50,9 +50,7 @@ const Initialization = () => {
|
||||
const submitNotification = (values: any) => {
|
||||
setLoading(true);
|
||||
request
|
||||
.put(`${config.apiPrefix}user/notification/init`, {
|
||||
values,
|
||||
})
|
||||
.put(`${config.apiPrefix}user/notification/init`, values)
|
||||
.then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
next();
|
||||
|
||||
@@ -19,9 +19,7 @@ const NotificationSetting = ({ data }: any) => {
|
||||
}
|
||||
|
||||
request
|
||||
.put(`${config.apiPrefix}user/notification`, {
|
||||
values,
|
||||
})
|
||||
.put(`${config.apiPrefix}user/notification`, values)
|
||||
.then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
message.success(values.type ? '通知发送成功' : '通知关闭成功');
|
||||
|
||||
@@ -96,6 +96,7 @@ export default {
|
||||
{ value: 'chat', label: '群晖chat' },
|
||||
{ value: 'email', label: '邮箱' },
|
||||
{ value: 'lark', label: '飞书机器人' },
|
||||
{ value: 'pushMe', label: 'PushMe' },
|
||||
{ value: 'webhook', label: '自定义通知' },
|
||||
{ value: 'closed', label: '已关闭' },
|
||||
],
|
||||
@@ -268,6 +269,13 @@ export default {
|
||||
{ label: 'emailUser', tip: '邮箱地址', required: true },
|
||||
{ label: 'emailPass', tip: '邮箱SMTP授权码', required: true },
|
||||
],
|
||||
pushMe: [
|
||||
{
|
||||
label: 'pushMeKey',
|
||||
tip: 'PushMe的Key,https://push.i-i.me/',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
webhook: [
|
||||
{
|
||||
label: 'webhookMethod',
|
||||
|
||||
Reference in New Issue
Block a user