发布 0.1.0:通知渠道、告警规则与多项体验修复
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { NInput, NSelect, useMessage } from 'naive-ui'
|
||||
import { NInput, NSelect } from 'naive-ui'
|
||||
import { computed, nextTick, reactive, ref, watch } from 'vue'
|
||||
|
||||
import { listCachedCompartments, listCachedRegions, listConfigs } from '@/api/configs'
|
||||
@@ -15,6 +15,7 @@ import TenantPicker from '@/components/TenantPicker.vue'
|
||||
import { defaultResourceName } from '@/composables/useFormat'
|
||||
import { useAsync } from '@/composables/useAsync'
|
||||
import type { Task, TaskType } from '@/types/api'
|
||||
import { useToast } from '@/composables/useToast'
|
||||
|
||||
/** task 传入即为编辑模式:回填全部字段,任务类型锁定不可切换 */
|
||||
const props = defineProps<{ show: boolean; task?: Task | null }>()
|
||||
@@ -29,7 +30,7 @@ const TYPE_CARDS: { value: TaskType; title: string; desc: string }[] = [
|
||||
{ value: 'snatch', title: '抢机', desc: '容量不足时反复尝试创建,抢满自停' },
|
||||
]
|
||||
|
||||
const message = useMessage()
|
||||
const message = useToast()
|
||||
const submitting = ref(false)
|
||||
const specForm = ref<InstanceType<typeof InstanceSpecForm> | null>(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user