mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-04-20 07:36:05 -04:00
Merge 17cffa75287ea7d5a843e7354e54173d53cf8be0 into 8d8e3e5a8e78030b8ffbe258dc872b8bea234390
This commit is contained in:
commit
e6165522d5
@ -11,6 +11,18 @@ export default {
|
||||
components: {
|
||||
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>
|
||||
|
||||
@ -20,5 +32,4 @@ export default {
|
||||
.shadow-box {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user