mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
Compare commits
3 commits
ffa8aad019
...
17cffa7528
Author | SHA1 | Date | |
---|---|---|---|
|
17cffa7528 | ||
|
0ec4de3a13 | ||
|
92604cfe6d |
1 changed files with 3 additions and 5 deletions
|
@ -14,16 +14,15 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
"$root.isMobile"(newVal) {
|
"$root.isMobile"(newVal) {
|
||||||
if (!newVal && this.$route.path === "/list") {
|
if (!newVal && this.$route.path === "/list") {
|
||||||
this.$router.push("/dashboard");
|
this.$router.replace({ path: "/dashboard" });
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (!this.$root.isMobile && this.$route.path === "/list") {
|
if (!this.$root.isMobile && this.$route.path === "/list") {
|
||||||
this.$router.push("/dashboard");
|
this.$router.replace({ path: "/dashboard" });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -33,5 +32,4 @@ export default {
|
||||||
.shadow-box {
|
.shadow-box {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue