优化项目结构

This commit is contained in:
eafonyang
2026-08-13 14:23:01 +08:00
parent e40d9d6b27
commit d01b0c8f47
29 changed files with 620 additions and 872 deletions
@@ -96,8 +96,6 @@ router.post('/api/www/sections', async (req: Request, res: Response) => {
bodyColor: b.body_color || '',
bgType: b.bg_type || 'color',
bgValue: b.bg_value || '',
overlayEnabled: b.overlay_enabled ? 1 : 0,
overlayOpacity: b.overlay_opacity ?? '0.00',
overlineZh: b.overline_zh || '',
overlineEn: b.overline_en || '',
titleZh: b.title_zh || '',
@@ -148,8 +146,6 @@ router.put('/api/www/sections/:id', async (req: Request, res: Response) => {
bodyColor: b.body_color ?? existing.bodyColor,
bgType: b.bg_type ?? existing.bgType,
bgValue: b.bg_value ?? existing.bgValue,
overlayEnabled: b.overlay_enabled !== undefined ? (b.overlay_enabled ? 1 : 0) : existing.overlayEnabled,
overlayOpacity: b.overlay_opacity ?? existing.overlayOpacity,
overlineZh: b.overline_zh ?? existing.overlineZh,
overlineEn: b.overline_en ?? existing.overlineEn,
titleZh: b.title_zh ?? existing.titleZh,