Compare commits

...

8 commits

Author SHA1 Message Date
Couteau Arthur
522c07f9b3
Merge ffa8aad019 into 8a432ac937 2024-11-12 18:00:27 +00: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,19 @@ export default {
components: {
MonitorList,
},
watch: {
"$root.isMobile"(newVal) {
if (!newVal && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
}
},
mounted() {
if (!this.$root.isMobile && this.$route.path === "/list") {
this.$router.push("/dashboard");
}
},
};
</script>