Allow deleting saved color palettes

This commit is contained in:
2026-11-28 12:28:13 +08:00
parent fc4bcea127
commit 1aaf3908af
9 changed files with 80 additions and 15 deletions
+1 -2
View File
@@ -49,8 +49,7 @@ final class SiteDesign
throw new RuntimeException('请先发布并选择维护页,再开启维护模式。');
}
if ($palette !== null) {
$site['palette_id'] = DesignLibrary::selection('palette', $palette)
?? throw new RuntimeException('请选择站点默认配色。');
$site['palette_id'] = DesignLibrary::selection('palette', $palette);
}
$site['name'] = $name;
$site['cdn'] = ['origin' => $origin];