mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
Missing this part 2
This commit is contained in:
parent
d97091af51
commit
be1fc0c2b6
2 changed files with 18 additions and 6 deletions
|
@ -12,9 +12,13 @@ export default {
|
|||
color() {
|
||||
if (this.status === 0) {
|
||||
return "danger"
|
||||
} if (this.status === 1) {
|
||||
}
|
||||
|
||||
if (this.status === 1) {
|
||||
return "primary"
|
||||
} if (this.status === 2) {
|
||||
}
|
||||
|
||||
if (this.status === 2) {
|
||||
return "warning"
|
||||
}
|
||||
|
||||
|
@ -24,9 +28,13 @@ export default {
|
|||
text() {
|
||||
if (this.status === 0) {
|
||||
return "Down"
|
||||
} if (this.status === 1) {
|
||||
}
|
||||
|
||||
if (this.status === 1) {
|
||||
return "Up"
|
||||
} if (this.status === 2) {
|
||||
}
|
||||
|
||||
if (this.status === 2) {
|
||||
return "Pending"
|
||||
}
|
||||
|
||||
|
|
|
@ -28,9 +28,13 @@ export default {
|
|||
color() {
|
||||
if (this.lastHeartBeat.status === 0) {
|
||||
return "danger"
|
||||
} if (this.lastHeartBeat.status === 1) {
|
||||
}
|
||||
|
||||
if (this.lastHeartBeat.status === 1) {
|
||||
return "primary"
|
||||
} if (this.lastHeartBeat.status === 2) {
|
||||
}
|
||||
|
||||
if (this.lastHeartBeat.status === 2) {
|
||||
return "warning"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue