mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 15:41:24 +08:00
set entry page
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
<script>
|
||||
import Login from "../components/Login.vue";
|
||||
import compareVersions from "compare-versions";
|
||||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
|
||||
@@ -120,9 +121,16 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
init() {
|
||||
async init() {
|
||||
if (this.$route.name === "root") {
|
||||
this.$router.push("/dashboard")
|
||||
|
||||
let entryPage = (await axios.get("/api/entry-page")).data;
|
||||
|
||||
if (entryPage === "statusPage") {
|
||||
this.$router.push("/status-page");
|
||||
} else {
|
||||
this.$router.push("/dashboard");
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user