Fix: entryPage setting can be null (#3994)

This commit is contained in:
Nelson Chan 2023-11-08 20:46:10 +08:00 committed by GitHub
parent b534fde265
commit 5b6522a54e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ export default {
} else if (res.type === "entryPage") { // Dev only. For production, the logic is in the server side } else if (res.type === "entryPage") { // Dev only. For production, the logic is in the server side
const entryPage = res.entryPage; const entryPage = res.entryPage;
if (entryPage.startsWith("statusPage-")) { if (entryPage?.startsWith("statusPage-")) {
this.$router.push("/status/" + entryPage.replace("statusPage-", "")); this.$router.push("/status/" + entryPage.replace("statusPage-", ""));
} else { } else {
// should the old setting style still exist here? // should the old setting style still exist here?