[status page] improve the entry

This commit is contained in:
LouisLam
2021-09-23 13:57:24 +08:00
parent 5f533b9091
commit 439f45d91e
5 changed files with 50 additions and 19 deletions

33
src/pages/Entry.vue Normal file
View File

@@ -0,0 +1,33 @@
<template>
<div></div>
</template>
<script>
import axios from "axios";
export default {
data() {
return {};
},
computed: {
},
watch: {
},
async mounted() {
let entryPage = (await axios.get("/api/entry-page")).data;
if (entryPage === "statusPage") {
this.$router.push("/status-page");
} else {
this.$router.push("/dashboard");
}
},
};
</script>