add lan ips to summary tab

This commit is contained in:
wh1te909 2020-02-24 07:07:49 +00:00
parent 00f6eff10a
commit 5012137f6c
1 changed files with 7 additions and 1 deletions

View File

@ -42,6 +42,12 @@
</q-item-section>
<q-item-section>Public IP: {{ summary.public_ip}}</q-item-section>
</q-item>
<q-item>
<q-item-section avatar>
<q-icon name="fas fa-network-wired" />
</q-item-section>
<q-item-section>LAN IP: {{ localIPs }}</q-item-section>
</q-item>
</q-list>
</div>
<div class="col-5"></div>
@ -131,7 +137,7 @@ export default {
});
}
});
return ips;
return (ips.length === 1 ? ips[0] : ips.join(", "))
}
}
};