mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Merge 17cffa7528
into 8a432ac937
This commit is contained in:
commit
c9ca367cf2
1 changed files with 12 additions and 1 deletions
|
@ -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…
Reference in a new issue