heyang 2 anni fa
parent
commit
1f5cbcd232
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4 2
      pages_manage/workbench/laboratory/laboratoryInfo.vue

+ 4 - 2
pages_manage/workbench/laboratory/laboratoryInfo.vue

@@ -12,7 +12,7 @@
         <view>{{itemData.subAddrrStr}}</view>
       </view>
     </view>
-    <view class="sensor-max-box" v-if="itemData.sensorFunctionList[0]&&!saoCodeType">
+    <view class="sensor-max-box" v-if="itemData.sensorFunctionList.length >0&&!saoCodeType">
       <view class="title-max-box">
         <view class="left-view"></view>
         <view class="right-view">传感器</view>
@@ -192,7 +192,9 @@ export default {
   data() {
     return {
 		baseUrl:config.base_url,
-      itemData:{},
+      itemData:{
+		  sensorFunctionList:[],
+	  },
       //MQTT请求参数-传感器
       mtopic:"lab/function/data",
       //MQTT请求参数-设备