Commit 1eaa4c1e authored by gengchunlei's avatar gengchunlei

Merge branch 'chronic-dev' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-dev

parents d08fcbdd 8f227861
......@@ -121,7 +121,10 @@ export default {
getPressureData(this.deviceNo).then(res => {
const result = res.data || []
if (result.length) {
let val = result[result.length - 1]
result.sort((a, b) => {
return b.id - a.id
})
let val = result[0]
if (dayjs(val.created).isAfter(this.valueTime)) {
this.lastValue = val
this.loopMark = 0
......
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