fix: switch missing break
This commit is contained in:
@@ -66,8 +66,10 @@ export const EditorViewer = (props: Props) => {
|
|||||||
switch (mode) {
|
switch (mode) {
|
||||||
case "profile": // profile文件
|
case "profile": // profile文件
|
||||||
fetchContent = readProfileFile(property);
|
fetchContent = readProfileFile(property);
|
||||||
|
break;
|
||||||
case "text": // 文本内容
|
case "text": // 文本内容
|
||||||
fetchContent = Promise.resolve(property);
|
fetchContent = Promise.resolve(property);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
fetchContent.then((data) => {
|
fetchContent.then((data) => {
|
||||||
const dom = editorRef.current;
|
const dom = editorRef.current;
|
||||||
|
|||||||
Reference in New Issue
Block a user