From 0b29fa228865fd14ab14a04abe7621d922625c24 Mon Sep 17 00:00:00 2001 From: dongchengjie <2424014450@qq.com> Date: Tue, 14 May 2024 01:24:23 +0800 Subject: [PATCH] fix: switch missing break --- src/components/profile/editor-viewer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/profile/editor-viewer.tsx b/src/components/profile/editor-viewer.tsx index 682847a8..7824c8e4 100644 --- a/src/components/profile/editor-viewer.tsx +++ b/src/components/profile/editor-viewer.tsx @@ -66,8 +66,10 @@ export const EditorViewer = (props: Props) => { switch (mode) { case "profile": // profile文件 fetchContent = readProfileFile(property); + break; case "text": // 文本内容 fetchContent = Promise.resolve(property); + break; } fetchContent.then((data) => { const dom = editorRef.current;