Commit 658e7c62 by 胡悦

修复bug

1 parent bfbc4d19
...@@ -94,9 +94,8 @@ export default { ...@@ -94,9 +94,8 @@ export default {
drawLine(api, options, charts, title, nodata) { drawLine(api, options, charts, title, nodata) {
api(this.params).then(res => { api(this.params).then(res => {
this[nodata] = !res.length this[nodata] = !res.length
console.log(this[nodata]) let x = []
let x let y = []
let y
res.map(item => { res.map(item => {
x.push(item.time) x.push(item.time)
y.push(item.count) y.push(item.count)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!