From 6eebe84aaecca4f19f9774d19c9014d456d0c80a Mon Sep 17 00:00:00 2001 From: umbor <14857490+umbors@users.noreply.github.com> Date: Sun, 4 Jun 2023 11:11:19 +0800 Subject: [PATCH] Add Wecom Notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加了企业微信推送通道的设置选项 --- src/components/setting/config-notification.vue | 2 +- types/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/setting/config-notification.vue b/src/components/setting/config-notification.vue index 51fef8f1..3cf016c0 100644 --- a/src/components/setting/config-notification.vue +++ b/src/components/setting/config-notification.vue @@ -5,7 +5,7 @@ import type { SettingItem } from '#/components'; const { getSettingGroup } = useConfigStore(); const notification = getSettingGroup('notification'); -const notificationType: NotificationType = ['telegram', 'server-chan', 'bark']; +const notificationType: NotificationType = ['telegram', 'server-chan', 'bark', 'wecom']; const items: SettingItem[] = [ { diff --git a/types/config.ts b/types/config.ts index 3982628f..12c19937 100644 --- a/types/config.ts +++ b/types/config.ts @@ -43,7 +43,7 @@ export interface Config { }; notification: { enable: boolean; - type: 'telegram' | 'server-chan' | 'bark'; + type: 'telegram' | 'server-chan' | 'bark' | 'wecom'; token: string; chat_id: string; };