Commit c522cc7e authored by 芮自成's avatar 芮自成

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

parents e24ad1cf 8e44203d
......@@ -110,7 +110,7 @@ export default {
console.warn('未选择设备')
return
}
if (this.loopMark >= 4) {
if (this.loopMark >= 8) {
this.loopMark = 0
this.deviceCheck(2)
cb && cb(null)
......@@ -121,7 +121,7 @@ export default {
getPressureData(this.deviceNo).then(res => {
const result = res.data || []
if (result.length) {
let val = result[0]
let val = result[result.length - 1]
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