This commit is contained in:
Couteau Arthur 2024-11-12 18:00:27 +00:00 committed by GitHub
commit 522c07f9b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,19 @@ export default {
components: { components: {
MonitorList, MonitorList,
}, },
watch: {
"$root.isMobile"(newVal) {
if (!newVal && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
}
},
mounted() {
if (!this.$root.isMobile && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
},
}; };
</script> </script>