fix: 接口状态指示器 - 只看carrier判断在线,wlan0断开应显示灰色

This commit is contained in:
2026-06-15 15:02:32 +08:00
parent 0178bafa42
commit 5c16059e81
+1 -1
View File
@@ -659,7 +659,7 @@ const Network = {
ifaces.push({
name: iface.name,
up: iface.carrier || iface.state === 'up',
up: iface.carrier === true,
state: iface.state,
ip: (iface.addresses && iface.addresses.length > 0) ? iface.addresses[0].split('/')[0] : '',
mac: iface.mac,