mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-14 23:47:00 +08:00
[Status Page] Fix theme bug
This commit is contained in:
@@ -33,7 +33,7 @@ export default {
|
|||||||
return "light";
|
return "light";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.path === "/status-page" || this.path === "/status") {
|
if (this.path.startsWith("/status-page") || this.path.startsWith("/status")) {
|
||||||
return this.statusPageTheme;
|
return this.statusPageTheme;
|
||||||
} else {
|
} else {
|
||||||
if (this.userTheme === "auto") {
|
if (this.userTheme === "auto") {
|
||||||
|
@@ -403,7 +403,7 @@ export default {
|
|||||||
|
|
||||||
// Set Theme
|
// Set Theme
|
||||||
"config.theme"() {
|
"config.theme"() {
|
||||||
this.$root.userTheme = this.config.theme;
|
this.$root.statusPageTheme = this.config.theme;
|
||||||
this.loadedTheme = true;
|
this.loadedTheme = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user