Merge 17cffa75287ea7d5a843e7354e54173d53cf8be0 into 8d8e3e5a8e78030b8ffbe258dc872b8bea234390

This commit is contained in:
Couteau Arthur 2025-04-18 23:34:26 +00:00 committed by GitHub
commit e6165522d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>