Przeglądaj źródła

气象站详情 元素添加判断 当值为-99.99的时候 不显示

zhangsijie 1 rok temu
rodzic
commit
4dd1c70102
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      pages/environment/equipment.vue

+ 1 - 0
pages/environment/equipment.vue

@@ -138,6 +138,7 @@
 						if (res.conf[key].indexOf("#") != -1) {
 							// let lable = res.conf[key].replace("#", "(") + ")"
 							console.log(res.conf[key])
+							if(res.dat[key].split('#')[0] == -99.99) return
 							this.olddata.push({
 								lable:res.conf[key].replace("#", "(") + ")",
 								value:res.dat[key].split('#')