mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30: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) {
|
||||
return themeAlgorithmNames.map((algorithmName) => {
|
||||
return themeAlgorithmNames.sort().reverse().map((algorithmName) => {
|
||||
if (algorithmName === "dark") {
|
||||
return theme.darkAlgorithm;
|
||||
}
|
||||
|
Reference in New Issue
Block a user