mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
fix: fix theme switch bug (#2741)
This commit is contained in:
@ -69,7 +69,7 @@ export function getThemeData(organization, application) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getAlgorithm(themeAlgorithmNames) {
|
export function getAlgorithm(themeAlgorithmNames) {
|
||||||
return themeAlgorithmNames.map((algorithmName) => {
|
return themeAlgorithmNames.sort().reverse().map((algorithmName) => {
|
||||||
if (algorithmName === "dark") {
|
if (algorithmName === "dark") {
|
||||||
return theme.darkAlgorithm;
|
return theme.darkAlgorithm;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user