mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-26 05:25:56 +00:00
Compare commits
12 commits
1601c8eba8
...
a27312688a
Author | SHA1 | Date | |
---|---|---|---|
|
a27312688a | ||
|
03beef8006 | ||
|
17cffa7528 | ||
|
0ec4de3a13 | ||
|
92604cfe6d | ||
|
ffa8aad019 | ||
|
49a5272573 | ||
|
c62f0d7bd6 | ||
|
c2f7747695 | ||
|
856ab558b9 | ||
|
04943c8553 | ||
|
bb14bc18ca |
2 changed files with 13 additions and 2 deletions
|
@ -485,7 +485,7 @@ function ApiCache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof duration === "string") {
|
if (typeof duration === "string") {
|
||||||
let split = duration.match(/^([\d\.,]+)\s?(\w+)$/);
|
let split = duration.match(/^([\d\.,]+)\s?([a-zA-Z]+)$/);
|
||||||
|
|
||||||
if (split.length === 3) {
|
if (split.length === 3) {
|
||||||
let len = parseFloat(split[1]);
|
let len = parseFloat(split[1]);
|
||||||
|
|
|
@ -11,6 +11,18 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
MonitorList,
|
MonitorList,
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
"$root.isMobile"(newVal) {
|
||||||
|
if (!newVal && this.$route.path === "/list") {
|
||||||
|
this.$router.replace({ path: "/dashboard" });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (!this.$root.isMobile && this.$route.path === "/list") {
|
||||||
|
this.$router.replace({ path: "/dashboard" });
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -20,5 +32,4 @@ export default {
|
||||||
.shadow-box {
|
.shadow-box {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Reference in a new issue