mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Compare commits
9 commits
3ee2d02350
...
88600b18ae
Author | SHA1 | Date | |
---|---|---|---|
|
88600b18ae | ||
|
4228dd0a29 | ||
|
cfd20f086c | ||
|
2aebf316a4 | ||
|
8389f7c054 | ||
|
d64eefd70e | ||
|
d4c7ebfafe | ||
|
aae0673a3d | ||
|
45c03c2b40 |
2 changed files with 17 additions and 4 deletions
|
@ -19,6 +19,16 @@ export default {
|
|||
onResize() {
|
||||
this.windowWidth = window.innerWidth;
|
||||
this.updateBody();
|
||||
|
||||
if (this.$router.currentRoute.value.path === "/dashboard"
|
||||
|| this.$router.currentRoute.value.path === "/list") {
|
||||
this.$router.push({
|
||||
path: this.isMobile
|
||||
? "/list"
|
||||
: "/dashboard",
|
||||
query: this.$router.currentRoute.value?.query,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1443,12 +1443,15 @@ message HealthCheckResponse {
|
|||
}
|
||||
}
|
||||
|
||||
// Set a default timeout if the monitor type has changed or if it's a new monitor
|
||||
if (oldType || this.isAdd) {
|
||||
if (this.monitor.type === "snmp") {
|
||||
// snmp is not expected to be executed via the internet => we can choose a lower default timeout
|
||||
this.monitor.timeout = 5;
|
||||
} else {
|
||||
this.monitor.timeout = 48;
|
||||
}
|
||||
}
|
||||
|
||||
// Set default SNMP version
|
||||
if (!this.monitor.snmpVersion) {
|
||||
|
|
Loading…
Reference in a new issue