fixed lint errors
This commit is contained in:
parent
5466b90c52
commit
989524f55d
@ -60,6 +60,7 @@ export default defineComponent({
|
|||||||
.then((energy) => {
|
.then((energy) => {
|
||||||
if (energy) {
|
if (energy) {
|
||||||
this.chartData = [[{ type: 'date', id: 'Time' }, { type: 'number', id: 'Energy' }]];
|
this.chartData = [[{ type: 'date', id: 'Time' }, { type: 'number', id: 'Energy' }]];
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
energy.forEach((x: any[]) => {
|
energy.forEach((x: any[]) => {
|
||||||
const d = new Date(x[0] + 2000, x[1] - 1, x[2], x[3]);
|
const d = new Date(x[0] + 2000, x[1] - 1, x[2], x[3]);
|
||||||
this.chartData.push([d, Math.round(x[4])])
|
this.chartData.push([d, Math.round(x[4])])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user