Compare commits

..

4 commits

Author SHA1 Message Date
Couteau Arthur
c9ca367cf2
Merge 17cffa7528 into 8a432ac937 2024-11-18 08:43:45 +00:00
logorrheique
17cffa7528 replace push by replace 🐓 2024-11-18 09:43:37 +01:00
logorrheique
0ec4de3a13 Revert replace router.push into router.replace 🐓"
This reverts commit 92604cfe6d.
2024-11-18 09:23:26 +01:00
logorrheique
92604cfe6d replace router.push into router.replace 🐓 2024-11-18 09:18:13 +01:00

View file

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