fix: theme switch service

This commit is contained in:
xboard
2025-07-15 20:49:08 +08:00
parent acf05c6107
commit ba2f305f33

View File

@@ -191,8 +191,12 @@ class ThemeService
/**
* 切换主题
*/
public function switch(string $theme): bool
public function switch(string|null $theme): bool
{
if ($theme === null) {
return true;
}
$currentTheme = admin_setting('current_theme');
try {