diff --git a/src/api/types.ts b/src/api/types.ts index 93b33605..a9edd3af 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -480,3 +480,14 @@ export interface ScheduleInfo { // 下次运行时间 next_run: string; } + + +// 消息通知 +export interface NotificationSwitch { + // 消息类型 + mtype: string; + // 开关 + wechat: boolean; + telegram: boolean; + slack: boolean; +} diff --git a/src/views/account-setting/AccountSettingNotification.vue b/src/views/account-setting/AccountSettingNotification.vue index a7923e7a..c301daee 100644 --- a/src/views/account-setting/AccountSettingNotification.vue +++ b/src/views/account-setting/AccountSettingNotification.vue @@ -1,36 +1,22 @@ @@ -47,9 +33,9 @@ const messageTypes = ref([ - + - {{ message.type }} + {{ message.mtype }} @@ -61,6 +47,9 @@ const messageTypes = ref([ + + 没有设置任何通知渠道 + @@ -68,7 +57,7 @@ const messageTypes = ref([ {}"> - 保存 + 保存