发布 0.1.0:通知渠道、告警规则与多项体验修复
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { NButton, NInput, NModal, useMessage } from 'naive-ui'
|
||||
import { NButton, NInput, NModal } from 'naive-ui'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
|
||||
import { testNotifyTemplate, updateNotifyTemplate } from '@/api/settings'
|
||||
import type { NotifyTemplateItem } from '@/types/api'
|
||||
import { useToast } from '@/composables/useToast'
|
||||
|
||||
const props = defineProps<{
|
||||
show: boolean
|
||||
@@ -18,7 +19,7 @@ const emit = defineEmits<{
|
||||
saved: [kind: string, template: string]
|
||||
}>()
|
||||
|
||||
const message = useMessage()
|
||||
const message = useToast()
|
||||
const draft = ref('')
|
||||
const saving = ref(false)
|
||||
const testing = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user