This commit is contained in:
Logorrheique 2024-11-04 13:29:39 +01:00
parent c62f0d7bd6
commit 49a5272573

View file

@ -12,14 +12,14 @@ export default {
MonitorList,
},
mounted() {
if (!this.$root.isMobile && this.$route.path === '/list') {
this.$router.push('/dashboard');
if (!this.$root.isMobile && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
},
watch: {
'$root.isMobile'(newVal) {
if (!newVal && this.$route.path === '/list') {
this.$router.push('/dashboard');
"$root.isMobile"(newVal) {
if (!newVal && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
}
}