Parcourir la source

Merge branch 'develop' of http://code.nyzhwlw.com:10202/yf_zhb/bigdata_WX into develop

leo il y a 12 heures
Parent
commit
b24d19c788
2 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 3 1
      pages/bzy/components/deviceData.vue
  2. 3 1
      pages/scd/components/deviceData.vue

+ 3 - 1
pages/bzy/components/deviceData.vue

@@ -365,8 +365,10 @@ export default {
           newVal.forEach(item=>{
             this.historyData.push(item.d_h_t)
           })
+          this.objItem = this.historyData[0]
+        }else{
+          this.objItem = {}
         }
-        this.objItem = this.historyData[0]
       },
       deep:true,
       immediate:true,

+ 3 - 1
pages/scd/components/deviceData.vue

@@ -363,8 +363,10 @@ export default {
           newVal.forEach(item=>{
             this.historyData.push(item.d_h_t)
           })
+          this.objItem = this.historyData[0]
+        }else{
+          this.objItem = {}
         }
-        this.objItem = this.historyData[0]
       },
       deep:true,
       immediate:true,