uptime-kuma/src/pages/Entry.vue

25 lines
481 B
Vue
Raw Normal View History

2021-09-23 05:57:24 +00:00
<template>
<div>
<!--
TODO: If the domain name matched, directly render the <StatusPage> component.
-->
</div>
2021-09-23 05:57:24 +00:00
</template>
<script>
import axios from "axios";
export default {
async mounted() {
let entryPage = (await axios.get("/api/entry-page")).data;
if (entryPage === "statusPage") {
this.$router.push("/status");
2021-09-23 05:57:24 +00:00
} else {
this.$router.push("/dashboard");
}
},
};
</script>