From a82941ceb138068e4bf83a0b478962fa548115e1 Mon Sep 17 00:00:00 2001 From: tianyaxiang <tianyaxiang@qq.com> Date: Sat, 1 Feb 2025 10:50:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A8=A1=E7=89=88=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/ArticleList.tsx | 4 ++-- src/components/editor/WechatEditor.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/editor/ArticleList.tsx b/src/components/editor/ArticleList.tsx index ff5b888..8881e75 100644 --- a/src/components/editor/ArticleList.tsx +++ b/src/components/editor/ArticleList.tsx @@ -65,7 +65,7 @@ export function ArticleList({ onSelect, currentContent, onNew }: ArticleListProp id: Date.now().toString(), title, content: currentContent, - template: 'creative', // 默认模板 + template: 'default', // 默认模板 createdAt: Date.now(), updatedAt: Date.now() } @@ -107,7 +107,7 @@ export function ArticleList({ onSelect, currentContent, onNew }: ArticleListProp id: Date.now().toString(), title: '新文章', content: '# 新文章\n\n开始写作...', - template: 'creative', + template: 'default', createdAt: Date.now(), updatedAt: Date.now() } diff --git a/src/components/editor/WechatEditor.tsx b/src/components/editor/WechatEditor.tsx index 489ea15..4fb26fc 100644 --- a/src/components/editor/WechatEditor.tsx +++ b/src/components/editor/WechatEditor.tsx @@ -23,7 +23,7 @@ export default function WechatEditor() { const textareaRef = useRef<HTMLTextAreaElement>(null) const previewRef = useRef<HTMLDivElement>(null) const [value, setValue] = useState('') - const [selectedTemplate, setSelectedTemplate] = useState<string>('creative') + const [selectedTemplate, setSelectedTemplate] = useState<string>('default') const [showPreview, setShowPreview] = useState(true) const [styleOptions, setStyleOptions] = useState<RendererOptions>({}) const [previewSize, setPreviewSize] = useState<PreviewSize>('medium')