mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
fix PR tasks
This commit is contained in:
parent
0fbf2f375f
commit
449f68e20b
1 changed files with 5 additions and 2 deletions
|
@ -68,6 +68,9 @@ export default {
|
||||||
const minuteTimeFormat = `${hourTimeFormat}:mm${
|
const minuteTimeFormat = `${hourTimeFormat}:mm${
|
||||||
this.use12HourTimeFormat ? " A" : ""
|
this.use12HourTimeFormat ? " A" : ""
|
||||||
}`;
|
}`;
|
||||||
|
const tooltipFormat = `YYYY-MM-DD ${hourTimeFormat}:mm:ss${
|
||||||
|
this.use12HourTimeFormat ? " A" : ""
|
||||||
|
}`;
|
||||||
return {
|
return {
|
||||||
responsive: true,
|
responsive: true,
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
|
@ -105,7 +108,7 @@ export default {
|
||||||
time: {
|
time: {
|
||||||
minUnit: "minute",
|
minUnit: "minute",
|
||||||
round: "second",
|
round: "second",
|
||||||
tooltipFormat: "YYYY-MM-DD HH:mm:ss",
|
tooltipFormat,
|
||||||
displayFormats: {
|
displayFormats: {
|
||||||
minute: minuteTimeFormat,
|
minute: minuteTimeFormat,
|
||||||
hour: `MM-DD ${minuteTimeFormat}`,
|
hour: `MM-DD ${minuteTimeFormat}`,
|
||||||
|
@ -185,7 +188,7 @@ export default {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.map((beat) => {
|
.map((beat) => {
|
||||||
const x = this.$root.datetime(beat.time, this.use12HourTimeFormat);
|
const x = this.$root.datetime(beat.time);
|
||||||
pingData.push({
|
pingData.push({
|
||||||
x,
|
x,
|
||||||
y: beat.ping,
|
y: beat.ping,
|
||||||
|
|
Loading…
Reference in a new issue