diff --git a/public/react/src/modules/page/component/monaco/TPIMonaco.js b/public/react/src/modules/page/component/monaco/TPIMonaco.js index 5e687e9ce..c71f13361 100644 --- a/public/react/src/modules/page/component/monaco/TPIMonaco.js +++ b/public/react/src/modules/page/component/monaco/TPIMonaco.js @@ -251,7 +251,8 @@ class TPIMonaco extends Component { // Clears the editor's undo history. // TODO // extend_editor.clearHistory() - } + } + editor_monaco.layout(); } componentWillUnmount() { // 注意销毁,不然会出现不能编辑的bug