mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 08:25:57 +00:00
fixed lint format
This commit is contained in:
parent
49d9d194a7
commit
cad43c82a0
1 changed files with 12 additions and 11 deletions
|
@ -29,6 +29,18 @@ export default {
|
||||||
error: null,
|
error: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
filteredReports() {
|
||||||
|
return this.incidentReports
|
||||||
|
.slice() // Create a copy to avoid mutating the original array
|
||||||
|
.sort(
|
||||||
|
(a, b) =>
|
||||||
|
new Date(b._createdDate) - new Date(a._createdDate),
|
||||||
|
)
|
||||||
|
.slice(-25); // Get the last 25 sorted reports
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.fetchIncidentReports();
|
this.fetchIncidentReports();
|
||||||
},
|
},
|
||||||
|
@ -55,17 +67,6 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
filteredReports() {
|
|
||||||
return this.incidentReports
|
|
||||||
.slice() // Create a copy to avoid mutating the original array
|
|
||||||
.sort(
|
|
||||||
(a, b) =>
|
|
||||||
new Date(b._createdDate) - new Date(a._createdDate),
|
|
||||||
)
|
|
||||||
.slice(-25); // Get the last 25 sorted reports
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Add table
Reference in a new issue