瀏覽代碼

fix: switch missing break

dongchengjie 1 年之前
父節點
當前提交
5e43c060fa
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/profile/editor-viewer.tsx

+ 2 - 0
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;