feat(welcome): 站点外观 - 增加欢迎页开放开关并修复入口分包

This commit is contained in:
MasterChiefCN
2026-09-15 11:10:12 +08:00
parent 40aca20f4d
commit 2dfcf624c5
16 changed files with 216 additions and 3 deletions

View File

@@ -368,6 +368,7 @@ function parseFeatureAvailability(value: unknown): FeatureAvailability {
if (typeof record[key] !== "boolean") throw new Error("功能开放配置响应缺少有效开关状态");
}
return {
welcomeEnabled: record.welcomeEnabled as boolean,
shortDramaEnabled: record.shortDramaEnabled as boolean,
taskCenterEnabled: record.taskCenterEnabled as boolean,
creditsEnabled: record.creditsEnabled as boolean,