mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 22:02:38 +03:00
1 parent
23581a34b0
commit
3763f9e076
1 file changed
+1
-1
@@ -9,7 +9,7 @@ const { t } = useI18n();
|
|||||||
const port = useQueryParam({ tool: 'port-numbers', name: 'port', defaultValue: 80 });
|
const port = useQueryParam({ tool: 'port-numbers', name: 'port', defaultValue: 80 });
|
||||||
const protocol = useQueryParam({ tool: 'port-numbers', name: 'proto', defaultValue: 'tcp' });
|
const protocol = useQueryParam({ tool: 'port-numbers', name: 'proto', defaultValue: 'tcp' });
|
||||||
const result = computed(() => {
|
const result = computed(() => {
|
||||||
const [type, description] = ports[`${port.value}/${protocol.value}` as (keyof typeof ports)];
|
const [type, description] = ports[`${port.value}/${protocol.value}` as (keyof typeof ports)] || [];
|
||||||
return { type: type ?? 'unknown', description: description ?? 'Unknown' };
|
return { type: type ?? 'unknown', description: description ?? 'Unknown' };
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in new issue
Block a user