Skip to content

Commit

Permalink
Update ServiceDetail.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
cnjxzhao committed Sep 6, 2022
1 parent c7bc09a commit 811590f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dubbo-admin-ui/src/components/ServiceDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
return address != null ? address.split(':')[0] : null
},
getPort: function (address) {
return address != null && address.split(':').length >= 1 ? address.split(':')[1] : null
return address != null && address.split(':').length >= 2 ? address.split(':')[1] : null
},
toCopyText (text) {
this.$copyText(text).then(() => {
Expand Down

0 comments on commit 811590f

Please sign in to comment.