From 49a52725737e5a057598c79e0fb5ee0d4a2df864 Mon Sep 17 00:00:00 2001 From: Logorrheique Date: Mon, 4 Nov 2024 13:29:39 +0100 Subject: [PATCH] fix --- src/pages/List.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/List.vue b/src/pages/List.vue index 53d3f71d..7644cb21 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -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"); } } }