replace router.push into router.replace 🐓

This commit is contained in:
logorrheique 2024-11-18 09:18:13 +01:00
parent ffa8aad019
commit 92604cfe6d
3 changed files with 17455 additions and 17457 deletions

View file

@ -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" });
}
},
};
</script>
@ -33,5 +32,4 @@ export default {
.shadow-box {
padding: 20px;
}
</style>