浏览代码

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

leo 1 天之前
父节点
当前提交
b24d19c788
共有 2 个文件被更改,包括 6 次插入2 次删除
  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,