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