This commit is contained in:
Couteau Arthur 2025-03-24 18:07:34 +00:00 committed by GitHub
commit a60671d4a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 1 deletions

View File

@ -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>