From bd2eb30e09c69fc883f9af6149ec0fe1762cb3f5 Mon Sep 17 00:00:00 2001 From: Couteau Arthur <60989517+Logorrheique@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:12:38 +0100 Subject: [PATCH] fix: Redirect to '/dashboard' on computer when shrinking from '/list' on mobile (#5305) Co-authored-by: Louis Lam Co-authored-by: Frank Elsinga --- src/pages/List.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pages/List.vue b/src/pages/List.vue index dd2d46059..2d8db2dba 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -11,6 +11,18 @@ export default { components: { MonitorList, }, + watch: { + "$root.isMobile"(newVal) { + if (!newVal && this.$route.path === "/list") { + this.$router.replace({ path: "/dashboard" }); + } + }, + }, + mounted() { + if (!this.$root.isMobile && this.$route.path === "/list") { + this.$router.replace({ path: "/dashboard" }); + } + }, }; @@ -20,5 +32,4 @@ export default { .shadow-box { padding: 20px; } -