Revert replace router.push into router.replace 🐓"

This reverts commit 92604cfe6d.
This commit is contained in:
logorrheique 2024-11-18 09:23:26 +01:00
parent 92604cfe6d
commit 0ec4de3a13
3 changed files with 17457 additions and 17455 deletions

View file

@ -14,15 +14,16 @@ export default {
watch: { watch: {
"$root.isMobile"(newVal) { "$root.isMobile"(newVal) {
if (!newVal && this.$route.path === "/list") { if (!newVal && this.$route.path === "/list") {
this.$router.replace({ path: "/dashboard" }); this.$router.push("/dashboard");
} }
}, }
}, },
mounted() { mounted() {
if (!this.$root.isMobile && this.$route.path === "/list") { if (!this.$root.isMobile && this.$route.path === "/list") {
this.$router.replace({ path: "/dashboard" }); this.$router.push("/dashboard");
} }
}, },
}; };
</script> </script>
@ -32,4 +33,5 @@ export default {
.shadow-box { .shadow-box {
padding: 20px; padding: 20px;
} }
</style> </style>