diff --git a/web/src/views/notify/components/TemplateSettings.vue b/web/src/views/notify/components/TemplateSettings.vue index 0d6bc6f..ca19a33 100644 --- a/web/src/views/notify/components/TemplateSettings.vue +++ b/web/src/views/notify/components/TemplateSettings.vue @@ -8,7 +8,7 @@ import { Textarea } from '@/components/ui/textarea' import { Badge } from '@/components/ui/badge' import { api } from '@/api' import { toast } from 'vue-sonner' -import { Save, RefreshCcw, Info, ChevronDown, ChevronUp } from 'lucide-vue-next' +import { Save, RefreshCcw, Info, ChevronDown, ChevronUp, Shield, Terminal } from 'lucide-vue-next' const props = defineProps<{ activeTab?: string, @@ -26,6 +26,7 @@ const expandedEvents = ref>({}) const eventGroups = [ { title: '系统与安全事件', + description: '配置帐号登录、安全告警等系统级事件的通知推送', events: [ { id: 'user_login', @@ -49,6 +50,7 @@ const eventGroups = [ }, { title: '任务执行事件', + description: '配置定时任务执行状态的通知行为(支持全局模板定制)', events: [ { id: 'task_success', @@ -110,120 +112,125 @@ function toggleExpand(id: string) { expandedEvents.value[id] = !expandedEvents.value[id] } + + onMounted(() => { loadSettings() - // 默认展开第一个 - expandedEvents.value['user_login'] = true + })