mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Merge ffa8aad019
into 778363a948
This commit is contained in:
commit
657a9de55b
1 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,19 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
MonitorList,
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue