fix: make CMS content live and migrate to MySQL

This commit is contained in:
Codex User
2026-09-08 15:37:25 +08:00
parent 3a99ae30c5
commit 087e5447df
31 changed files with 557 additions and 920 deletions
+3 -7
View File
@@ -1,10 +1,11 @@
import { Link } from 'react-router-dom'
import { SERVICES as FALLBACK_SERVICES } from '@/data/mock'
import { useCMS, getCMSServices } from '@/services/cms'
import { useCMS, useCMSTexts, getCMSServices } from '@/services/cms'
import GlobalCTA from '@/components/Layout/GlobalCTA'
export default function Services() {
const { data: SERVICES } = useCMS(getCMSServices, FALLBACK_SERVICES)
const { data: texts } = useCMSTexts()
return (
<div>
<div className="page-header">
@@ -16,12 +17,7 @@ export default function Services() {
/
</div>
<h1></h1>
<p>
/
</p>
<div className="placeholder" style={{ marginTop: 12 }}>
</div>
<p>{texts['services.header_description'] || '围绕下一步行动展示标准产品与定制陪跑服务。'}</p>
</div>
</div>
<section className="section">