优化项目结构
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user