diff --git a/src/pages/List.vue b/src/pages/List.vue index 7644cb21b..6f1030eef 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -11,18 +11,19 @@ export default { components: { MonitorList, }, - mounted() { - 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"); } } - } + }, + mounted() { + if (!this.$root.isMobile && this.$route.path === "/list") { + this.$router.push("/dashboard"); + } + }, + };