Skip to content

Commit 478177b

Browse files
committed
fix(service): 服务列表目标端口显示
1 parent eea9693 commit 478177b

File tree

1 file changed

+7
-1
lines changed
  • web/dashboard/src/business/network/services

1 file changed

+7
-1
lines changed

web/dashboard/src/business/network/services/index.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@
4242
<template v-slot:default="{row}">
4343
<div v-for="(value,key,index) in row.spec.ports" v-bind:key="index" type="info" size="mini">
4444
<span style="font-size: 12px" v-if="row.spec.type ==='NodePort'">
45-
{{ value.port }} : {{ value.nodePort }} /{{ value.protocol }} ---> {{ value.targetPort }}
45+
{{ value.port }}:{{ value.nodePort }}/{{ value.protocol }}
46+
</span>
47+
<span style="font-size: 12px" v-if="row.spec.type !=='NodePort' && value.port === value.targetPort">
48+
{{ value.port }}/{{ value.protocol }}
49+
</span>
50+
<span style="font-size: 12px" v-if="row.spec.type !=='NodePort' && value.port !== value.targetPort">
51+
{{ value.port }}:{{ value.targetPort }}/{{ value.protocol }}
4652
</span>
4753
<br>
4854
</div>

0 commit comments

Comments
 (0)