add color

This commit is contained in:
2024-08-12 16:00:55 +08:00
parent a8857e40d4
commit 107dc62e40
2 changed files with 13 additions and 1 deletions

View File

@@ -148,9 +148,11 @@ async function getDHCPList(addr: string | null) {
status: result[eq]['status'],
host: result[eq]['host-name'],
comment: result[eq]['comment'],
device: false,
};
if (addr !== null || addr !== undefined || addr !== '') {
if (addr === format.address) {
format.device = true;
list.unshift(format);
} else {
list.push(format);