From 856ab558b98b3e4fec944d71ac180474f8a01082 Mon Sep 17 00:00:00 2001 From: Logorrheique Date: Mon, 4 Nov 2024 11:20:41 +0100 Subject: [PATCH] fix package.lock --- src/pages/List.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/pages/List.vue b/src/pages/List.vue index dd2d46059..53d3f71da 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -11,6 +11,18 @@ 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'); + } + } + } };