Commit ee3819bc authored by gengchunlei's avatar gengchunlei

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

parents 980ce374 8e44203d
......@@ -66,7 +66,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = '07931df0-4a1c-45a9-8b49-570435d06abc'
token = '9606c004-d369-4c13-b04e-1502bcb1182a'
}
}
if (token) {
......
......@@ -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