mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-22 22:13:20 +02:00
fix warning The watch property should be above the mounted
This commit is contained in:
parent
49a5272573
commit
ffa8aad019
@ -11,18 +11,19 @@ export default {
|
||||
components: {
|
||||
MonitorList,
|
||||
},
|
||||
mounted() {
|
||||
if (!this.$root.isMobile && this.$route.path === "/list") {
|
||||
this.$router.push("/dashboard");
|
||||
}
|
||||
},
|
||||
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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user