fix: make CMS content live and migrate to MySQL
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { INSIGHTS as FALLBACK_INSIGHTS } from '@/data/mock'
|
||||
import { useCMS, getCMSInsights } from '@/services/cms'
|
||||
import { useCMS, useCMSTexts, getCMSInsights } from '@/services/cms'
|
||||
import GlobalCTA from '@/components/Layout/GlobalCTA'
|
||||
|
||||
export default function Insights() {
|
||||
const { data: INSIGHTS } = useCMS(getCMSInsights, FALLBACK_INSIGHTS)
|
||||
const { data: texts } = useCMSTexts()
|
||||
return (
|
||||
<div>
|
||||
<div className="page-header">
|
||||
@@ -13,13 +14,10 @@ export default function Insights() {
|
||||
<Link to="/" style={{ color: 'rgba(255,255,255,0.8)' }}>
|
||||
首页
|
||||
</Link>{' '}
|
||||
/ 认知观察
|
||||
</div>
|
||||
<h1>认知观察</h1>
|
||||
<p>围绕企业进化、价值坐标、A/M/B 与方法论的持续观察与沉淀。</p>
|
||||
<div className="placeholder" style={{ marginTop: 12 }}>
|
||||
【占位|待业务确认】文章由知识母盘定稿后灌入,一期仅保留结构与占位。
|
||||
/ {texts['insights.title'] || '认知观察'}
|
||||
</div>
|
||||
<h1>{texts['insights.title'] || '认知观察'}</h1>
|
||||
<p>{texts['insights.header_description'] || '围绕企业进化、价值坐标、A/M/B 与方法论的持续观察与沉淀。'}</p>
|
||||
</div>
|
||||
</div>
|
||||
<section className="section">
|
||||
|
||||
Reference in New Issue
Block a user