From 23deefd49a7fbcc7d6356aa235a844f1bb17f0b7 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 13 May 2024 09:58:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20RouteKey=E7=BB=84=E4=BB=B6taskType?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E9=BB=98=E8=AE=A4undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/route-key.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/common/route-key.vue b/src/components/common/route-key.vue index 823b228..7444475 100644 --- a/src/components/common/route-key.vue +++ b/src/components/common/route-key.vue @@ -12,10 +12,7 @@ interface Props { taskType?: Api.Common.TaskType; } -const props = withDefaults(defineProps(), { - // HACK: 默认值为`集群`, 选项不受限制 - taskType: 1 -}); +const props = defineProps(); interface Emits { (e: 'update:value', value: Api.Common.RouteKey): void; @@ -33,7 +30,7 @@ const selectOptions = computed(() => { if (props.taskType === 2 || props.taskType === 3) { return translateOptions(routeKeyRecordOptions.filter(o => o.value === 4)); } - // 1:集群 ==> 选项不受限 + // 默认undefined, 1:集群 ==> 选项不受限 return translateOptions(routeKeyRecordOptions); });