mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 18:37:16 +00:00
Merge cfd20f086c
into c01494ec33
This commit is contained in:
commit
7ddd3cc69f
1 changed files with 10 additions and 0 deletions
|
@ -19,6 +19,16 @@ export default {
|
||||||
onResize() {
|
onResize() {
|
||||||
this.windowWidth = window.innerWidth;
|
this.windowWidth = window.innerWidth;
|
||||||
this.updateBody();
|
this.updateBody();
|
||||||
|
|
||||||
|
if (this.$router.currentRoute.value.path === "/dashboard"
|
||||||
|
|| this.$router.currentRoute.value.path === "/list") {
|
||||||
|
this.$router.push({
|
||||||
|
path: this.isMobile
|
||||||
|
? "/list"
|
||||||
|
: "/dashboard",
|
||||||
|
query: this.$router.currentRoute.value?.query,
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue