1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-22 22:13:20 +02:00
This commit is contained in:
Logorrheique 2024-11-04 13:29:39 +01:00
parent c62f0d7bd6
commit 49a5272573

View File

@ -12,14 +12,14 @@ export default {
MonitorList, MonitorList,
}, },
mounted() { mounted() {
if (!this.$root.isMobile && this.$route.path === '/list') { if (!this.$root.isMobile && this.$route.path === "/list") {
this.$router.push('/dashboard'); this.$router.push("/dashboard");
} }
}, },
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.push("/dashboard");
} }
} }
} }