Compare commits

...

11 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
Logorrheique
ffa8aad019 fix warning The watch property should be above the mounted 2024-11-04 13:32:40 +01:00
Logorrheique
49a5272573 fix 2024-11-04 13:29:39 +01:00
Logorrheique
c62f0d7bd6 Revert "fix double quote"
This reverts commit c2f7747695.
2024-11-04 13:25:12 +01:00
Logorrheique
c2f7747695 fix double quote 2024-11-04 13:24:06 +01:00
Logorrheique
856ab558b9 fix package.lock 2024-11-04 11:20:41 +01:00
Logorrheique
04943c8553 Revert "redirect to /dashboard when shrinking on computer from /list on mobile size"
This reverts commit bb14bc18ca.
2024-11-04 11:15:18 +01:00
Logorrheique
bb14bc18ca redirect to /dashboard when shrinking on computer from /list on mobile size 2024-11-04 10:59:29 +01:00

View file

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