From 17cffa75287ea7d5a843e7354e54173d53cf8be0 Mon Sep 17 00:00:00 2001 From: logorrheique Date: Mon, 18 Nov 2024 09:43:37 +0100 Subject: [PATCH] =?UTF-8?q?replace=20push=20by=20replace=20=F0=9F=90=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/List.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/List.vue b/src/pages/List.vue index 6f1030ee..2d8db2db 100644 --- a/src/pages/List.vue +++ b/src/pages/List.vue @@ -14,16 +14,15 @@ export default { watch: { "$root.isMobile"(newVal) { if (!newVal && this.$route.path === "/list") { - this.$router.push("/dashboard"); + this.$router.replace({ path: "/dashboard" }); } - } + }, }, mounted() { if (!this.$root.isMobile && this.$route.path === "/list") { - this.$router.push("/dashboard"); + this.$router.replace({ path: "/dashboard" }); } }, - }; @@ -33,5 +32,4 @@ export default { .shadow-box { padding: 20px; } -