Commit 64136d11 by lixinming

no message

parent 8a559b5e
......@@ -35,6 +35,7 @@ export async function getData(req, res) {
for (let i = 0; i < keyList.length; i++) {
let {dataList, now} = await 温湿度变化趋势变化趋势(keyList[i], "温度");
if (!now) continue;
dataList.sort((a, b) => {return parseFloat(a.key)-parseFloat(b.key)})
let xnList = [1,1,2,3,4,5,9,9,9,9,9];
let xnDataList = [];
dataList.forEach((info, itemIndex) => {
......@@ -63,6 +64,7 @@ export async function getData(req, res) {
for (let i = 0; i < keyList.length; i++) {
let {dataList, now} = await 温湿度变化趋势变化趋势(keyList[i], "湿度");
if (!now) continue;
dataList.sort((a, b) => {return parseFloat(a.key)-parseFloat(b.key)})
let xnDataList = [];
dataList.forEach((info, itemIndex) => {
xnDataList.push({
......
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