fix: 集群=>选项不受限, 广播, 切片=>只能选择轮询

This commit is contained in:
dhb52 2024-05-13 09:54:23 +08:00
parent bba5fc0dde
commit b75379a3a3

View File

@ -14,7 +14,7 @@ interface Props {
const props = withDefaults(defineProps<Props>(), { const props = withDefaults(defineProps<Props>(), {
// HACK: ``, // HACK: ``,
taskType: 2 taskType: 1
}); });
interface Emits { interface Emits {
@ -29,11 +29,11 @@ const selectOptions = computed(() => {
// //
emit('update:value', 4); emit('update:value', 4);
// 2:, 3: // 2:广, 3: ==> ``
if (props.taskType === 2 || props.taskType === 3) { if (props.taskType === 2 || props.taskType === 3) {
return translateOptions(routeKeyRecordOptions.filter(o => o.value === 4)); return translateOptions(routeKeyRecordOptions.filter(o => o.value === 4));
} }
// 2:广 // 1: ==>
return translateOptions(routeKeyRecordOptions); return translateOptions(routeKeyRecordOptions);
}); });
</script> </script>