diff --git a/src/components/DeviceList.vue b/src/components/DeviceList.vue index a4fb5f9e..9d3f2992 100644 --- a/src/components/DeviceList.vue +++ b/src/components/DeviceList.vue @@ -37,7 +37,7 @@ default-expand-all :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" :row-class-name="tableRowClassName" - highlight-current-row> + :highlight-current-row="false"> @@ -210,7 +210,7 @@ export default { await this.loadDevices(); }, - // 为区域主控设备添加高亮 + // 为区域主控设备添加静态高亮样式 tableRowClassName({ row, rowIndex }) { if (row.type === 'area_controller') { return 'current-row'; @@ -258,6 +258,11 @@ export default { margin-top: 15px; } +/* 确保区域主控设备始终高亮显示 */ +:deep(.current-row) { + background-color: #f5f7fa !important; +} + @media (max-width: 768px) { .device-list { padding: 10px;