mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Compare commits
9 commits
ce4ea290bd
...
657a9de55b
Author | SHA1 | Date | |
---|---|---|---|
|
657a9de55b | ||
|
778363a948 | ||
|
ffa8aad019 | ||
|
49a5272573 | ||
|
c62f0d7bd6 | ||
|
c2f7747695 | ||
|
856ab558b9 | ||
|
04943c8553 | ||
|
bb14bc18ca |
2 changed files with 14 additions and 1 deletions
|
@ -1065,7 +1065,7 @@ import { hostNameRegexPattern } from "../util-frontend";
|
||||||
import HiddenInput from "../components/HiddenInput.vue";
|
import HiddenInput from "../components/HiddenInput.vue";
|
||||||
import EditMonitorConditions from "../components/EditMonitorConditions.vue";
|
import EditMonitorConditions from "../components/EditMonitorConditions.vue";
|
||||||
|
|
||||||
const toast = useToast;
|
const toast = useToast();
|
||||||
|
|
||||||
const pushTokenLength = 32;
|
const pushTokenLength = 32;
|
||||||
|
|
||||||
|
|
|
@ -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