From b75379a3a37bcb2ae09e0a3e45061f1081b27bd3 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 13 May 2024 09:54:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9B=86=E7=BE=A4=3D>=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=B8=8D=E5=8F=97=E9=99=90,=20=E5=B9=BF=E6=92=AD,=20=E5=88=87?= =?UTF-8?q?=E7=89=87=3D>=E5=8F=AA=E8=83=BD=E9=80=89=E6=8B=A9`=E8=BD=AE?= =?UTF-8?q?=E8=AF=A2`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/route-key.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/common/route-key.vue b/src/components/common/route-key.vue index fa585d6..823b228 100644 --- a/src/components/common/route-key.vue +++ b/src/components/common/route-key.vue @@ -14,7 +14,7 @@ interface Props { const props = withDefaults(defineProps(), { // HACK: 默认值为`集群`, 选项不受限制 - taskType: 2 + taskType: 1 }); interface Emits { @@ -29,11 +29,11 @@ const selectOptions = computed(() => { // 默认选中轮询 emit('update:value', 4); - // 2:集群, 3:切片 + // 2:广播, 3:切片 ==> 只能选择`轮询` if (props.taskType === 2 || props.taskType === 3) { return translateOptions(routeKeyRecordOptions.filter(o => o.value === 4)); } - // 2:广播 + // 1:集群 ==> 选项不受限 return translateOptions(routeKeyRecordOptions); });