Commit 478177be authored by ssongliu's avatar ssongliu
Browse files

fix(service): 服务列表目标端口显示

parent eea96933
Showing with 7 additions and 1 deletion
+7 -1
......@@ -42,7 +42,13 @@
<template v-slot:default="{row}">
<div v-for="(value,key,index) in row.spec.ports" v-bind:key="index" type="info" size="mini">
<span style="font-size: 12px" v-if="row.spec.type ==='NodePort'">
{{ value.port }} : {{ value.nodePort }} /{{ value.protocol }} ---> {{ value.targetPort }}
{{ value.port }}:{{ value.nodePort }}/{{ value.protocol }}
</span>
<span style="font-size: 12px" v-if="row.spec.type !=='NodePort' && value.port === value.targetPort">
{{ value.port }}/{{ value.protocol }}
</span>
<span style="font-size: 12px" v-if="row.spec.type !=='NodePort' && value.port !== value.targetPort">
{{ value.port }}:{{ value.targetPort }}/{{ value.protocol }}
</span>
<br>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment