Browse Source

使用设备类型判断菜单是否显示 bug

master
王梦远 2 weeks ago
parent
commit
6467ddc408
  1. 2
      src/views/home/index.vue

2
src/views/home/index.vue

@ -179,7 +179,7 @@ const computedStyle = () => {
:key="item.sensorId"
class="card"
:class="{
'card-center-1': index === 0 && deviceStore.deviceInfo.deviceType === deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 3,
'card-center-1': index === 0 && deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 3,
'card-center-2': index === 0 && deviceStore.deviceInfo.deviceType !== deviceStore.deviceTypeMap.LargeSpaceDM_B && homeStore.h2O2SensorData.length === 5,
}"
>

Loading…
Cancel
Save