From de8df8bfcd82457b1a43268f3e4660a2de8093fe Mon Sep 17 00:00:00 2001 From: ozh Date: Tue, 22 Sep 2026 14:42:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(device):=20=E7=A7=BB=E9=99=A4=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=8D=A1=E7=89=87=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E7=A6=BB=E7=BA=BF=E6=A0=B7=E5=BC=8F=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iconOffline 在引入产品图后实际未生效(产品图在 card 父级判断离线条带 处理),删除 SCSS 类与 cardTop 上对应的拼接 className --- src/pages/device/index.module.scss | 6 ------ src/pages/device/index.tsx | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/device/index.module.scss b/src/pages/device/index.module.scss index 9c2e721..d905566 100644 --- a/src/pages/device/index.module.scss +++ b/src/pages/device/index.module.scss @@ -219,22 +219,16 @@ box-shadow: 0 6px 16px rgba(44, 203, 152, 0.25); } -.iconOffline { background: $color-bg-disabled; } - .iconText { font-size: 36px; color: #ffffff; } -.iconOffline .iconText { color: $color-text-tertiary; } - .iconImg { width: 80px; height: 80px; } -.iconOffline .iconImg { opacity: 0.5; } - .name { max-width: 100%; font-size: 28px; diff --git a/src/pages/device/index.tsx b/src/pages/device/index.tsx index 04c9ab7..8700242 100644 --- a/src/pages/device/index.tsx +++ b/src/pages/device/index.tsx @@ -239,7 +239,7 @@ export default function DeviceList() { {deviceList.map((device) => ( goDetail(device)}> - + {(() => { const src = pickDeviceIcon(device) return src ? (