|
|
@ -34,8 +34,13 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
chart: null, |
|
|
|
timer: null, |
|
|
|
elendData: this.lendData |
|
|
|
timer: null |
|
|
|
// elendData: this.lendData |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
elendData() { |
|
|
|
return this.lendData |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
@ -61,6 +66,7 @@ export default { |
|
|
|
if (this.refreshtime) { |
|
|
|
this.timer = setInterval(() => { |
|
|
|
// this.elendData = [] |
|
|
|
console.log(this.lendData, this.elendData, '**') |
|
|
|
this.drawChart() |
|
|
|
}, this.refreshtime) |
|
|
|
} else { |
|
|
|