diff --git a/src/pages/List.vue b/src/pages/List.vue index 53d3f71da..7644cb21b 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"); } } }