mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
fix
This commit is contained in:
parent
c62f0d7bd6
commit
49a5272573
1 changed files with 5 additions and 5 deletions
|
@ -12,14 +12,14 @@ export default {
|
|||
MonitorList,
|
||||
},
|
||||
mounted() {
|
||||
if (!this.$root.isMobile && this.$route.path === '/list') {
|
||||
this.$router.push('/dashboard');
|
||||
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');
|
||||
"$root.isMobile"(newVal) {
|
||||
if (!newVal && this.$route.path === "/list") {
|
||||
this.$router.push("/dashboard");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue