add /status, alias of /status-page (#471)

This commit is contained in:
LouisLam 2021-09-25 22:44:29 +08:00
parent ce9a97a107
commit 87e213085f
5 changed files with 8 additions and 3 deletions

View File

@ -19,7 +19,7 @@
<ul class="nav nav-pills">
<li class="nav-item me-2">
<a href="/status-page" class="nav-link status-page">
<a href="/status" class="nav-link status-page">
<font-awesome-icon icon="stream" /> {{ $t("Status Page") }}
</a>
</li>

View File

@ -6,6 +6,7 @@ let socket;
const noSocketIOPages = [
"/status-page",
"/status",
"/"
];

View File

@ -33,7 +33,7 @@ export default {
return "light";
}
if (this.path === "/status-page") {
if (this.path === "/status-page" || this.path === "/status") {
return this.statusPageTheme;
} else {
if (this.userTheme === "auto") {

View File

@ -10,7 +10,7 @@ export default {
let entryPage = (await axios.get("/api/entry-page")).data;
if (entryPage === "statusPage") {
this.$router.push("/status-page");
this.$router.push("/status");
} else {
this.$router.push("/dashboard");
}

View File

@ -72,6 +72,10 @@ const routes = [
path: "/status-page",
component: StatusPage,
},
{
path: "/status",
component: StatusPage,
},
];
export const router = createRouter({