mirror of
https://github.com/EasyTier/EasyTier.git
synced 2024-11-16 11:42:27 +08:00
🐞 fix: status display
When the node goes online, it is displayed as local
This commit is contained in:
parent
f46ba4f7c6
commit
ab46205d9e
|
@ -40,10 +40,9 @@ const peerRouteInfos = computed(() => {
|
|||
})
|
||||
|
||||
function routeCost(info: any) {
|
||||
if (!info.peer)
|
||||
return t('status.local')
|
||||
|
||||
if (info.route) {
|
||||
if (!info.peer && !info.route.peer_id)
|
||||
return t('status.local')
|
||||
const cost = info.route.cost
|
||||
return cost === 1 ? 'p2p' : `relay(${cost})`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user