Commit f7c50bf6 authored by lyong's avatar lyong

fix:优化温湿度变量无定义bug

parent 76de4414
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
var packet_cmd = require("packet_cmd.js"); var packet_cmd = require("packet_cmd.js");
var _userdata = require("userdata.js"); var _userdata = require("userdata.js");
var userData = _userdata.userData; var userData = _userdata.userData;
var global = require("factory_dataStorage.js");
//var envTemp = require("environmentTemperature.js"); //var envTemp = require("environmentTemperature.js");
var sendValue = 0; var sendValue = 0;
export default { export default {
...@@ -109,7 +110,6 @@ ...@@ -109,7 +110,6 @@
if (t > 0 && h > 0) { if (t > 0 && h > 0) {
this.setValue(t, h); this.setValue(t, h);
var global = require("factory_dataStorage.js");
global.setFactoryData("tvoc", 1); global.setFactoryData("tvoc", 1);
this.checkAutoFactory(); this.checkAutoFactory();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment