Skip to content

Commit

Permalink
fix: switch missing break
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchengjie committed May 13, 2024
1 parent e8dee1d commit 5e43c06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/profile/editor-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5e43c06

Please sign in to comment.